解決方案:
- 採用新的映象地址,進入cmd之後輸入:
- npm 命令:
-
npm config set registry https://registry.npmmirror.com
yarn命令:
-
yarn config set registry https://registry.npmmirror.com
檢視配置是完成
-
npm config get registry yarn config get registry
-
參考:https://blog.csdn.net/xiaohua616/article/details/137021906 夏小花花