Termux-packages: Please Upgrade Node Js lastest version 14.11.0

Created on 21 Sep 2020  路  6Comments  路  Source: termux/termux-packages

Current node version v12.18.3 is deprecated for some npm package.

Most helpful comment

@amm834 use it like
MongoClient.connect(url, {useUnifiedTopology: true}, (err, client) => { ...

You will have to pass option useUnifiedTopology: true

All 6 comments

We have v14.8.0 available in termux

I think you had nodejs-lts version installed
Try
pkg install nodejs

We have v14.8.0 available in termux

I think you had nodejs-lts version installed
Try
pkg install nodejs

Yes I have been get 14.8.0
But some npm packages are deprecated.
Ex.mongo

Screenshot_2020-09-21-13-06-01-97
I use node v14.8.0
But I get this.Not good idea馃槄.
Cuz nodejs v14.11.0 is available now.

But some npm packages are deprecated.
Ex.mongo

The deprecation warnings you are seeing means that the npm package uses deprecated functions/features. It cannot be fixed by upgrading nodejs (newer nodejs versions introduce more deprecations), it has to be fixed in the npm package.

@amm834 use it like
MongoClient.connect(url, {useUnifiedTopology: true}, (err, client) => { ...

You will have to pass option useUnifiedTopology: true

Thanks all

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tigran123 picture tigran123  路  3Comments

bkdwt picture bkdwt  路  3Comments

neitsab picture neitsab  路  3Comments

roalyr picture roalyr  路  3Comments

roycebank picture roycebank  路  3Comments