Home > Web Front-end > JS Tutorial > body text

What to do if the installation of Electron fails

php中世界最好的语言
Release: 2018-03-23 16:45:44
Original
3792 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template