Installation npm given rollbackFailedOptional: verb npm-session

1, change the source npm

Solution: Replace the source into Taobao

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

- the configuration can be verified by successful in the following manner

npm config get registry

- or npm info express

2, cnpm

Deleting the original all agents

npm config rm proxy

npm config rm https-proxy

Then use npm install -g cnpm --registry = https: //registry.npm.taobao.org installed Taobao cnpm

You can use the Taobao cnpm

Published 21 original articles · won praise 0 · Views 2247

Guess you like

Origin blog.csdn.net/hfaflanf/article/details/105377345