I just installed Node.js
and npm
(for additional modules).
How can I update Node.js and the modules which I\'m using to the latest versions
If you're using Windows: Go to https://nodejs.org/en/download/, download latest .exe
or .msi
file and install to overwrite the old versions
If you're using Ubuntu or Linux: Uninstall node.js
first then reinstall, e.g with Ubuntu ():
sudo apt-get remove nodejs
# assume node.js 8 is latest version
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs
node -v
npm -v
Remove node_modules
in your project folder and npm install
to make sure your application will run well on new node
and npm
version.