搭建环境时通过如下代码将npm设置为淘宝镜像
npm config set registry https://registry.npm.taobao.org --global npm config set disturl https://npm.taobao.org/dist --global
设置当前地址(设置为默认地址)
npm config set registry https://registry.npmjs.org/
查看镜像的配置结果
npm config get registry npm config get disturl
使用nrm工具切换淘宝源
npx nrm use taobao
如果之后需要切换回官方源可使用
npx nrm use npm
版本号里面的^表示,版本更新后面两位版本(3.x.x),如果是~则表示更新最后一位(3.1.x),如果不加符合就表示等于
学习Vue的第一天,一个下午肝了70多节,感觉不错,很久没这样学习了
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有