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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With