-
查看
npm
当前版本$ npm -v
-
更新到最新版本
$ npm install -g npm
-
更新到指定版本
$ npm -g install npm@6.8.0
-
清理
npm
缓存数据$ npm cache clean --force
查看 npm
当前版本
$ npm -v
更新到最新版本
$ npm install -g npm
更新到指定版本
$ npm -g install npm@6.8.0
清理 npm
缓存数据
$ npm cache clean --force