Nodejs update

Asked

Viewed 221 times

-1

I am currently with V8.10.0 and wanted to update it to 10.16, but when using: sudo npm cache clean -f I get the following answer: using --force I sure Hope you know what you are Doing. How to solve this?

  • That message is just one warning. Makes no difference.

1 answer

0


You should completely uninstall the nodejs. For this see this link below:
How to deinstalar nodejs: https://stackoverflow.com/questions/32426601/completly-uninstall-nodejs-npm-and-node-in-ubuntu-14-04

Then you can use the nodejs through the nvm (Node Version Manage):
Installation: https://github.com/nvm-sh/nvm
Note: If you are using Debian distribution, do the following:
sudo apt-get install build-essential libssl-dev

Done this is just install the nvm:
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
Or access the following link for more details https://github.com/nvm-sh/nvm.

After installing run the following commands:

genesis@mrgenesis:~/$ nvm --version
0.34.0
genesis@mrgenesis:~/$ nvm ls-remote --lts | grep v10
       v10.13.0   (LTS: Dubnium)
       v10.14.0   (LTS: Dubnium)
       v10.14.1   (LTS: Dubnium)
       v10.14.2   (LTS: Dubnium)
       v10.15.0   (LTS: Dubnium)
       v10.15.1   (LTS: Dubnium)
       v10.15.2   (LTS: Dubnium)
->     v10.15.3   (LTS: Dubnium)
       v10.16.0   (Latest LTS: Dubnium)

Then you can install the version you want as follows: nvm install v10.16.0

The npm will be installed automatically.

  • Thank you so much for the answer. I managed to do everything right here. Vlw

Browser other questions tagged

You are not signed in. Login or sign up in order to post.