如何选择npm路径?

时间:2022-07-02 02:40:26

I installed npm in my Debian by using this command

我使用这个命令在Debian中安装了npm

<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
npm@2.12.0 /usr/lib/node_modules/npm

It worked

它工作

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

但之后当我在我的终端上运行npm命令时

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 ?

假设我要改变npm路径。现在我想知道怎么做?

1 个解决方案

#1


2  

Relaunch bash. It should correct the path issue.

重启bash。它应该纠正路径问题。

#1


2  

Relaunch bash. It should correct the path issue.

重启bash。它应该纠正路径问题。