![]() #Install NodeJS from external repositoriesĮcho "deb $DISTRO main" > /etc/apt//nodesource.listĮcho "deb-src $DISTRO main" > /etc/apt//nodesource.list In debian stretch and jessie use this script : #install prerequisitesĪpt-get install apt-transport-https curl git lsb-release -y To upgrade npm you need to update nodejs to the latest version which includes npm Node.js fundamentals: how to upgrade the Node.js version | The Holmes Office You can always update it by manually downloading the latest version and installing it yourself! Other option is to install it via a PPA by chris-lea sudo add-apt-repository ppa:chris-lea/node.js To see if it actually upgraded, run: node -v Or just tell it to install the latest stable version. You can tell it to install a specific version like so: sudo n 0.8.11 ![]() You can update nodejs by using npm itself, a PPA, or manually.Ĭheck the current version you have: node -v What do I have to do to update npm to the latest version? ![]() I also tried using n (as suggested in How can I update my nodeJS to the latest version?) to update, but it affects neither npm nor node: node sudo npm install -g n It is my understanding that you should be able to update npm using npm install -g npm, but the command has no effect on the npm being used: npm sudo npm install -g npm I noticed that the npm version is somewhat old, so I wanted to check the problem with the latest release. I'm having issues with npm in a Vagrant box I'm setting up.
0 Comments
Leave a Reply. |