先安装cnpm,再安装electron
npm install cnpm -g --registry=https://registry.npm.taobao.org
/usr/local/bin/bin/cnpm install electron -g
本文介绍了一种在中国网络环境下优化npm包安装速度的方法,通过先安装cnpm,然后使用cnpm来全局安装Electron,以提高开发效率。
先安装cnpm,再安装electron
npm install cnpm -g --registry=https://registry.npm.taobao.org
/usr/local/bin/bin/cnpm install electron -g
1241
216
2376

被折叠的 条评论
为什么被折叠?