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


i've installed node on macos

brew install node 

after doing this, node installed correctly:

$ node -v   v8.4.0 

but running

$ npm -v 

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

what way install node npm via brew?

brew install node uses default --without-npm

i had same problem. ran $ brew doctor make sure node linked first. ran
$ brew postinstall node

$ npm -v should show version number.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -