在 64 位系统下安装 32 位 electron

  1. 直接 npm 安装
npm install --arch=ia32 [email protected]
  1. 配置 .npmrc
arch=ia32
registry=https://registry.npm.taobao.org
  1. 配置 package.json
{
  "config": {
    "arch": "ia32",
    "registry": "https://registry.npm.taobao.org"
  },
  "devDependencies": {
    "electron": "5.0.2"
  }
}

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