如果npm下载一直卡顿可以考虑是否换国内镜像
npm config set registry https://registry.npm.taobao.org
更新到最新版本
npm install npm@latest -g
npm替换到指定版本
npm install -g npm@[version_number]
例如
npm install -g npm@3.10.10
如果npm下载一直卡顿可以考虑是否换国内镜像
npm config set registry https://registry.npm.taobao.org
更新到最新版本
npm install npm@latest -g
npm替换到指定版本
npm install -g npm@[version_number]
例如
npm install -g npm@3.10.10