Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What would be the way now to install node with npm via brew

I've installed node on my macOS

brew install node

After doing this, node is installed correctly:

$ node -v
  v8.4.0

But running

$ npm -v

gives me -bash: /usr/local/bin/npm: No such file or directory

What would be the way now to install node with npm via brew?

brew install node uses by default --without-npm

like image 688
user3142695 Avatar asked Oct 18 '22 07:10

user3142695


1 Answers

I had the same problem. I ran $ brew doctor to make sure node was linked first. Then I ran
$ brew postinstall node

$ npm -v should now show the version number.

like image 63
XtalOsc Avatar answered Nov 15 '22 07:11

XtalOsc