Npm solve the problem of slow download

Override the default installation npm use Taobao custom cnpm command-line tool: a method

Elevation install g cnpm --registry = https: // registry.npm.taobao.org

Method 2: Download npm modify the default Taobao Mirror

asl cofig set registry https: // registry.npm.taobao.org/

Note that if in the future you need to publish your own packages, value of the registry will need to modify the back of the field

asl cofig set registry https: // registry.npmjs.org/

Guess you like

Origin www.cnblogs.com/wszzj/p/12051551.html