Home > Article > Web Front-end > What to do if the installation of Electron fails
This time I will bring you InstallationHow to deal with Electron failure, what are the Precautions for installing Electron, the following is a practical case, let's take a look. Electron Framework, formerly Atom Shell, allows you to write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on io.js and Chromium open source projects. The editor encountered npm installation of Electron that failed due to slow network timeout. Let's take a look.
1. If the npm source is too slow, you can switch the source to the domestic Taobao mirror.
npm config set registry https://registry.npm.taobao.org
2. Go to electron To download the latest installation package for domestic mirrors, focus on the version corresponding to your own system
https://npm.taobao.org/mirrors/electron
3. Place the downloaded package into the .electron folder in the root directory of the current user. Windows is usually
C:\Users\YourUserName\.electron
4. Execute the installation command npm install electron-prebuilt -g
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to php Other related articles on the Chinese website!
Recommended reading:
Singleton encapsulation addition, deletion and modification check
Detailed explanation of the scope and pre-parsing of js
The above is the detailed content of What to do if the installation of Electron fails. For more information, please follow other related articles on the PHP Chinese website!