D
D
dmitry-toster2020-09-06 02:55:55
macOS
dmitry-toster, 2020-09-06 02:55:55

What is the magic - npm not found?

Installed node.js
node -v successfully gives v12.18.3
npm -verror: npm not found
The magic is that node and npm are in the same folder /usr/local/bin, the path of which is registered in $PATH
only npm for some reason is not available.
I tried LTS and Current versions, reinstalled, restarted the machine, the result is the same
5f5425703da2d344076914.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dmitry-toster, 2020-09-06
@dmitry-toster

the problem was in crooked aliases in another application, which created a conflict

I
index0h, 2020-09-06
@index0h

Probably there is no path /usr/local/bin in PATH

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question