Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What if npm installs Electron slowly and fails due to network timeout?

Shulou Source: shulou.com Published: 2022-06-02 06:35:05 10月02日 Update

This article mainly explains the "npm installation Electron slow network timeout leads to failure how to do", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "npm installation Electron slow network timeout leads to failure how to do" it!

The predecessor of the Electron framework is Atom Shell, which allows you to write and build 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 Electron slow network timeout caused by failure, let's take a look.

1. If the npm source is too slow, you can cut the source to the domestic image of Taobao.

Npm config set registry https://registry.npm.taobao.org

2. Download the latest installation package from the domestic image of electron. You are mainly optimistic about the corresponding version of your system, which is supported by windows, mac and linux versions.

Https://npm.taobao.org/mirrors/electron

3. Put the downloaded package under the .packages folder in the root directory of the current user. Windows is usually

C:\ Users\ YourUserName\ .coach

Then re-npm I installs the required dependencies to successfully install

Thank you for your reading, the above is the "npm installation Electron slow network timeout leads to failure" content, after the study of this article, I believe you on npm installation Electron slow network timeout caused by the failure of this problem has a deeper understanding, the specific use of the need for you to practice verification. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Slow network how to do learning content situation mirror success predecessor that is applications ideas files folders articles more root directory framework desktop version Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Redmi Huawei vpn Docker