Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I select my npm path?

I installed npm in my Debian by using this command

<code> curl -L  https://npmjs.org/install.sh | sudo sh </code>

at the end it says,

/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
[email protected] /usr/lib/node_modules/npm

It worked

But after that when I run npm command in my terminal in shows:

root@orvi:/home/orvi# npm
bash: /usr/local/bin/npm: No such file or directory

so I assume I have to change the npm path. now I want to know how do I do it ?

like image 557
orvi Avatar asked Oct 20 '25 14:10

orvi


1 Answers

Relaunch bash. It should correct the path issue.

like image 171
Alain O'Dea Avatar answered Oct 22 '25 03:10

Alain O'Dea



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!