命令`npm install npm@5.5.1 -g`失败

时间:2023-01-18 07:57:59

I want to upgrade npm by commandnpm install npm@5.5.1 -g.It did success,but command npm -v still show older version. How could I fix it?

我想通过commandnpm install npm@5.5.1 -g升级npm。它确实成功了,但是命令npm -v仍然显示旧版本。我该怎么办呢?

命令`npm install npm@5.5.1 -g`失败

1 个解决方案

#1


-1  

Try: sudo npm install npm@5.5.1 -g

尝试:sudo npm install npm@5.5.1 -g

#1


-1  

Try: sudo npm install npm@5.5.1 -g

尝试:sudo npm install npm@5.5.1 -g