npm设置淘宝镜像
1、npm设置淘宝镜像
npm config set registry https://registry.npm.taobao.org
2、查看镜像设置
npm config get registry
3、还原成npm镜像
npm config set registry https://registry.npmjs.org/
4、清除npm缓存
npm cache clean --force
node升级
- 升级到指定的版本 n 版本号 如 n 10.0.0
-
安装最新的版本
n latest
-
安装最近的稳定版本
n stable
npm instal报错 Failed at the electron@1.4.13 postinstall script 'node install.js'
设置淘宝镜像就行