Windows 系统下 Electron 依赖安装
文章目录
Windows 下多次尝试安装 Electron 依赖,均失败。添加淘宝源 npm install --registry https://registry.npm.taobao.org(package.json 中已经添加对应的 Electron 依赖),仍然失败。
解决办法:
设置中配置镜像源,以及单独配置 Electron 源
npm config set registry https://registry.npm.taobao.org/
npm config set ELECTRON_MIRROR http://npm.taobao.org/mirrors/electron/
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论