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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -