NPM

1.设置库  ————持久使用
npm config set registry https://registry.npm.taobao.org     // https://registry.npmmirror.com
配置后可通过下面方式来验证是否成功 
npm config get registry  


2.安装 cnpm使用
npm install -g cnpm --registry=https://registry.npmmirror.com/

 

3、清理缓存
npm cache clean --force
 
posted @ 2024-07-17 15:39  五百万  阅读(2)  评论(0编辑  收藏  举报