NPM Acceleration Solution

Source: Internet
Author: User

Use NPM install package, is see more headache things, relatively slow, difficult to wait, after exploration, or found that there are ways to accelerate the method has two, let me one by one ways to:

1. Add parameter--registry= after NPM ... Specify the mirror source address

Install [Extended Name] [Other parameters]--registry=https://registry.npm.taobao.org-g

2. The second method I prefer, is to use CPM directly, without NPM, the collective steps are as follows

Install cmp --registry=https://registry.npm.taobao.org-g

Cmp-v

CMP (GNU diffutils) 2.8.1

Copyright (C) 2002 Free Software Foundation, Inc.

This program is comes with NO WARRANTY and to the extent permitted.

Redistribute copies of this program

Under the terms of the GNU general public License.

For more information on these matters, see the file named COPYING.

Written by Torbjorn Granlund and David MacKenzie.

These two methods, are very simple, after the log, I do not have to worry about the download problem

NPM Acceleration Solution

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.