升级npm+node

2019-10-29  本文已影响0人  rajs20222007

一、升级node
I found this really neat way of updating node on David Walsh's blog, you can do it by installing n:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

It will install the current stable version of node.

二、升级npm
npm install npm@latest -g

三、升级npm下的库
npm update -g
npm update

FAQ:
npm cache clear --force

上一篇下一篇

猜你喜欢

热点阅读