需要执行以下命令更改:
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
转自:https://blog.csdn.net/a249040113/article/details/81567430
原文:https://www.cnblogs.com/jp1021/p/13034164.html