Answer the question
In order to leave comments, you need to log in
How to find out where npm is in ubuntu?
Faced a problem. you need to specify the path to npm in one application.
I type whereis npm and the path
/home/slava/.nvm/versions/node/v14.17.3/bin/npm is displayed
But if I specify that file in the application or simply if I run
/home/.../.nvm/ in the project folder versions/node/v14.17.3/bin/npm -i
then an error occurs. and in the npm file there is some text in js.
If I do a folder search, I find it in different folders.
and what is the correct way to specify? After all, if you just type npm -v in the console, then it gives the correct version. where does it get this path from?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question