- 直接 npm 安装
npm install --arch=ia32 electron@1.4.14
- 配置 .npmrc
arch=ia32
registry=https://registry.npm.taobao.org
- 配置 package.json
{
"config": {
"arch": "ia32",
"registry": "https://registry.npm.taobao.org"
},
"devDependencies": {
"electron": "5.0.2"
}
}
来源:CSDN
作者:xdhc304
链接:https://blog.csdn.net/xdhc304/article/details/104537539