Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm upgrade with homebrew

When node (v.0.10.33) is installed with homebrew (v. 0.9.5), at one point it says:

==> Caveats
If you update npm itself do NOT use the npm upgrade command
Instead execute:
npm install -g npm@latest

So, what exactly is npm upgrade and what is the difference with npm install -g npm@latest?

-- edit 2015

the problem doesn't exist anymore with the current version of node. (but I never had an answer to what npm upgrade is?)

like image 236
François Romain Avatar asked Nov 20 '14 15:11

François Romain


1 Answers

Use npm install to install a package and npm update to update a package.

That Homebrew npm caveat was removed after the issue with npm update -g was fixed.

like image 54
ma11hew28 Avatar answered Oct 07 '22 03:10

ma11hew28