将npm设为淘宝镜像

查看原配置:

npm get registry 

> https://registry.npmjs.org/

 

将npm设为淘宝镜像:

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

npm config set disturl https://npm.taobao.org/dist --global

 

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

 

$ cnpm install [name]

 

将npm设为原配置:

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

 

你可能感兴趣的:(ionic)