npm更换为镜像
背景:npm在安裝的過程中需用從國外的網站獲取代碼,速度非常慢,因此更換為淘寶鏡像,提升速度。
1.永久起作用:
1 npm config set registry https://registry.taobao.org2.驗證是否設置成功:
1 npm config get registry3.在使用npm install進行安裝時報錯,error code EINTEGRITY:
使用如下命令清緩存
1 npm cache verify?
轉載于:https://www.cnblogs.com/zhuzhaoli/p/10246887.html
總結
- 上一篇: 如何定义开发完成?(Definition
- 下一篇: centos 安装pip3