I'm trying to install mean.io boilerplate. It fails when running sudo npm install -g meanio@latest
. Prior to failing it notes that it 'wants' npm version 1.4.x, whereas I have 1.2.18 installed. So I tried updating npm to the latest; several ways. Last of which was...
ubuntu@ip-xxx-xx-xx-xxx:~$ sudo npm install -g npm
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
npm@1.4.7 /usr/local/lib/node_modules/npm
ubuntu@ip-xxx-xx-xx-xxx:~$ npm --version
1.2.18
Why is it still showing version 1.2.18, when I just updated to 1.4.7?
if user3223763's answer doesn't works, you can try this:
Then :
After this, open a new terminal and check the npm version:
EDIT / UPDATE :
Today the last nvm version is :
Thus the CURL command is: v0.25.4 instead of v0.13.1
if you happen to use nvm
Check your node version node -v and your npm version npm -v Then To update your npm, type this into your terminal : sudo npm install npm@latest -g
N.B: Debian Based OS{ubuntu or Linux mint}
upgrading to nodejs v0.12.7
Source from nodesource.com
To get the latest stable version just run
It worked just fine for me!
Looks like you are using Ubuntu (from the command line you show). To update
npm
andnodejs
you can use the PPA repository: