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
Post a Comment