参考:https://www.yuucn.com/a/1565526.html
https://blog.csdn.net/m0_65066691/article/details/128168066
https://blog.csdn.net/Johanna51/article/details/123360477
通过如下指令获得用户配置文件目录, 删除.npmrc文件
powershell
npm config get userconfig
清除缓存方法: 会出现警示(大佬可以解答一下这么做的风险)
powershell
npm cache clean --force
更换淘宝源(老生常谈)
powershell
npm config set registry http://registry.npm.taobao.org/
npm config get registry
清除代理(已按方法0操作成功 但又报错read ECONNRESET)
powershell
npm config get proxy
npm config rm proxy
npm config rm https-proxy