NPM installation Electron Slow network timeout results in failure

Source: Internet
Author: User

1. NPM source is too slow, you can cut the source to the domestic Taobao mirror.

NPM Config Set Registry https://registry.npm.taobao.org

2. To electron's domestic mirror Download the latest installation package, mainly optimistic about the corresponding version of their system

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

3. Under the. Electron folder where the downloaded package is placed under the current user's root directory, Windows is typically
C:\Users\YourUserName\.electron

4. Perform installation command NPM install Electron-prebuilt-g

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.