安装Electron时报错command sh -c node install.js

在安装Electron报如下错误
安装Electron时报错command sh -c node install.js_第1张图片

在指令后面添加 --ignore-scripts,意思是npm 将不会运行在package.json中指定的scripts

npm install --save -dev electron --ignore-scripts

你可能感兴趣的:(electron,javascript,前端)