报错:
清除一下缓存,并删除掉node_module
npm cache clean --force
切换cnpm安装
npm install -g cnpm --registry=https://registry.npm.taobao.org
安装electron
cnpm i electron --save-d
安装成功!
报错:
清除一下缓存,并删除掉node_module
npm cache clean --force
切换cnpm安装
npm install -g cnpm --registry=https://registry.npm.taobao.org
安装electron
cnpm i electron --save-d
安装成功!