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仍然显示旧版本。我该怎么办呢?
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