工具 | 版本要求 |
---|---|
Node.js | 14.20.0 |
npm | 6.14.7 |
Vue CLI | 5.0.8 |
由于淘寶原鏡像域名(registry.npm.taobao.org)的HTTPS證書(shū)已到期,現(xiàn)需切換至新域名(registry.npmmirror.com)。
# 1. 設(shè)置新鏡像源
npm config set registry https://registry.npmmirror.com
# 2. 驗(yàn)證配置是否生效
npm config get registry
# 預(yù)期輸出: https://registry.npmmirror.com
# 1. 清理npm緩存
npm cache clean --force
# 2. 更新鏡像源地址
npm config set registry https://registry.npmmirror.com
如果不想手動(dòng)更新鏡像源,可以直接使用淘寶的cnpm工具,官方已自動(dòng)處理了鏡像源更新問(wèn)題。
微信掃碼
關(guān)注PHP中文網(wǎng)服務(wù)號(hào)
QQ掃碼
加入技術(shù)交流群
Copyright 2014-2025 http://ipnx.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號(hào)