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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -