What will now install node with npm via brew

I installed node on my macOS

brew install node

After that, node is installed correctly:

$ node -v
  v8.4.0

But launch

$ npm -v

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

What will node with npm install through brew now?

brew install node uses the default --without-npm

+4
source share
3 answers

I had the same problem. I performed $ brew doctorto make sure that node was connected first. Then I ran
$ brew postinstall node

$ npm -vnow should show the version number.

+2
source

. , ~/.bash_profile , , bash npm.

+1

Homebrew node.

Node (NVM), n. Mac node, . . . , node npm.

. nvm n Homebrew. (brew install nvm brew install n).

0

Source: https://habr.com/ru/post/1683971/


All Articles