//首先安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org //使用cnpm进行安装,使用方法和npm相同 cnpm install -g electron 1. 2. 3. 4. 5. 不过是使用npm通过淘宝镜像安装还是通过cnpm进行安装,都可以成功完成electron(原electron-prebuilt)的安装。
//首先安装cnpmnpminstall-g cnpm --registry=https://registry.npm.taobao.org//使用cnpm进行安装,使用方法和npm相同cnpminstall-g electron 不过是使用npm通过淘宝镜像安装还是通过cnpm进行安装,都可以成功完成electron(原electron-prebuilt)的安装。 https://blog.csdn.net/upc_xbt/article/details/53342129...
npm install -g @firesoon/electron-prebuilt If that command fails with anEACCESSerror you may have to run it again withsudo: sudo npm install -g @firesoon/electron-prebuilt Now you can just runelectronto run electron: electron If you need to use an HTTP proxy you canset these environment...
Node 10 and aboveBefore Node 10Custom Mirrors and CachesDuring installation, theelectronmodule will call out to@electron/getto download prebuilt binaries of Electron for your platform. It will do so by contacting GitHub's release download page (https://github.com/electron/electron/releases/tag/v$...
根据官网提供的electron的npm安装方法,使用下面的命令进行安装,结果不成功npm install --save-dev electron-prebuilt错误提示electron-prebuilt已经改名为electron,重新使用npm install --save-dev electron进行安装,仍然不成功。通过查阅相关资料,了解到,可能是由于国外镜像不能访问的原因,所以使用国内镜像进行安装。国内比...
2. 到electrohttp://n的国内镜像下载最新的安装包,主要看好自己系统对应的版本 https://npm.taobao.org/mirrors/electrohttp://n 3. 将下载好的包放到当前用户的根目录下的.electron文件夹下,windows一般是 C:\Users\YourUserName\.electron 4. 执行安装命令npm install electron-prebuilt -g...
可以先安装nrm npm i -g nrm,然后再把安装源切换到taobao nrm use tao 最后就可以执行安装 npm i electron-prebuilt
使用npm安装electron不成功的解决方法 根据官网提供的electron的npm安装方法,使用下面的命令进行安装,结果不成功 npm install--save-develectron-prebuilt 1 错误提示electron-prebuilt已经改名为electron,重新使用npm install --save-dev electron进行安装,仍然不成功。
NoteAs of version 1.3.1, this package is published to npm under two names:electronandelectron-prebuilt. You can currently use either name, butelectronis recommended, as theelectron-prebuiltname is deprecated, and will only be published until the end of 2016. ...
可以先安装nrm npm i -g nrm, 然后再把安装源切换到taobao nrm use tao 最后就可以执行安装 npm i electron-prebuilt