问题遇到的现象和发生背景
我在本地终端使用npm login一直报错
问题相关代码,请勿粘贴截图
npm ERR! code ECONNRESET
npm ERR! syscall read
npm ERR! errno ECONNRESET
npm ERR! network request to https://registry.npmjs.org/-/v1/login failed, reason: read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cache_logs\2022-06-22T08_12_26_529Z-debug-0.log
运行结果及报错内容
一直说我的网络有问题,修改代理什么的
我的解答思路和尝试过的方法
我在网上搜了很久,没有搜到解决方法,但是类似的清理cashe文件,删除.npmrc文件,npm config set proxy null,npm config set https-proxy null这些办法我都试过了,不行
我想要达到的结果
我只想npm login 成功一下呀