我在本地终端使用npm login一直报错
npm ERR! code ECONNRESETnpm ERR!
syscall readnpm ERR!
errno ECONNRESETnpm ERR!
network request to https://registry.npmjs.org/-/v1/login failed,
reason: read ECONNRESETnpm 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!
networknpm ERR!
network If you are behind a proxy, please make sure that thenpm 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
这些办法我都试过了,不行