npm install --save-dev electron报错

报错:
在这里插入图片描述

清除一下缓存,并删除掉node_module

npm cache clean --force

切换cnpm安装

npm install -g cnpm --registry=https://registry.npm.taobao.org

安装electron

cnpm i electron --save-d

安装成功!

猜你喜欢

转载自blog.csdn.net/weixin_44001222/article/details/131392995