Modify NPM Package Manager's registry for Taobao image (npm.taobao.org)

Source: Internet
Author: User
Cause

With node installed and NPM installed, the official source is too slow. Look at the NPM image of Taobao, http://npm.taobao.org/unexpectedly said let me download a cnpm, or every time you have to install, the back plus--registry. Are you kidding me? You can just see the conclusion that registry only applies to scenarios where you only download and do not publish to NPM. 

The Award of a fishing

Too little information, npm-l.   See this config command. NPM Help Config does not have any available information, decisively see also results found in Npm-config (7) There are registry related things. (Why is registry.) Because Taobao has written, every time let you--registry AH) Well, basically determine registry is we need to change the place. How to change. NPM Help Config found the following good things: first come to NPM config list and try the configuration items are here. 

conclusion and Focus

so NPM config set registry "https://registry.npm.taobao.org" again list again
It's already here. Okay, now you can try your NPM install is not faster.


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.