# Remove Deprecation warnings in Elasticsearch nodejs client

**URL:** <https://discuss.elastic.co/t/remove-deprecation-warnings-in-elasticsearch-nodejs-client/260385>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [January 6, 2021, 9:10pm UTC](https://discuss.elastic.co/t/remove-deprecation-warnings-in-elasticsearch-nodejs-client/260385 "2021-01-06T21:10:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_Maury](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent_maury/32/59973_2.png) [@Vincent\_Maury](https://discuss.elastic.co/u/Vincent_Maury)\
**Post date:** [January 6, 2021, 9:10pm UTC](https://discuss.elastic.co/t/remove-deprecation-warnings-in-elasticsearch-nodejs-client/260385/1 "2021-01-06T21:10:34Z")

</div>

Hi  
I'm using node10 (in AWS Lambda), the 7.9 nodejs client version and a 7.9.3 ES cluster (in Elasticsearch service from [cloud.elastic.co](http://cloud.elastic.co)).  
Every time I'm calling Elasticsearch I get this in the error log:

`(node:8) DeprecationWarning: You are using a version of Node.js that will reach EOL in April 2021. The support for this version will be dropped in 7.13. Please refer to https://ela.st/nodejs-support for additional information.`

How can I remove this message? maybe disable the deprecation warning?  
I also created an issue in github: [Remove deprecation warnings · Issue #1387 · elastic/elasticsearch-js · GitHub](https://github.com/elastic/elasticsearch-js/issues/1387)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 6, 2021, 9:33pm UTC](https://discuss.elastic.co/t/remove-deprecation-warnings-in-elasticsearch-nodejs-client/260385/2 "2021-01-06T21:33:37Z")

</div>

Hi Vincent, you need to upgrade to a newer version of Node. If you visit the page linked from the message, [https://ela.st/nodejs-support](https://ela.st/nodejs-support), you'll see that v10 is deprecated and will soon become unsupported.

---

<div class="post-metadata">

**Author:** ![Vincent\_Maury](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent_maury/32/59973_2.png) [@Vincent\_Maury](https://discuss.elastic.co/u/Vincent_Maury)\
**Post date:** [January 7, 2021, 8:06am UTC](https://discuss.elastic.co/t/remove-deprecation-warnings-in-elasticsearch-nodejs-client/260385/3 "2021-01-07T08:06:40Z")

</div>

Hi David  
thank you for your answer.  
As you may guess, I can't upgrade node by myself... Hence my question about removing this log (which by the way seems to appear in the error log although it's a warning?)

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 7, 2021, 8:19am UTC](https://discuss.elastic.co/t/remove-deprecation-warnings-in-elasticsearch-nodejs-client/260385/4 "2021-01-07T08:19:52Z")

</div>

No, the warning is important, you absolutely should not ignore it. Node v10 reaches EOL [very soon](https://nodejs.org/en/about/releases/) so an upgrade is pretty urgent. If you can't upgrade it yourself you need to find someone who can.

---

<div class="post-metadata">

**Author:** ![Vincent\_Maury](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent_maury/32/59973_2.png) [@Vincent\_Maury](https://discuss.elastic.co/u/Vincent_Maury)\
**Post date:** [January 18, 2021, 10:14am UTC](https://discuss.elastic.co/t/remove-deprecation-warnings-in-elasticsearch-nodejs-client/260385/5 "2021-01-18T10:14:59Z")

</div>

Thank you again @DavidTurner  
I asked again my provider to upgrade the node version of the platform.  
Meanwhile, I downgraded the nodejs client to v7.8 and the warning is removed. This is not a good solution, and I expect nodejs to be upgraded soon!  
Thanks again for your support.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 15, 2021, 10:15am UTC](https://discuss.elastic.co/t/remove-deprecation-warnings-in-elasticsearch-nodejs-client/260385/6 "2021-02-15T10:15:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
