其实就是按那个warning的提示步骤来 Use --location=global instead
--location=global
具体参考这个吧 https://blog.csdn.net/coder_noob/article/details/125169111
设置淘宝镜像源加速 npm config set registry https://registry.npmmirror.com/
npm config set registry https://registry.npmmirror.com/