报错代码
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
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: C:\Users\HeZhiPeng\AppData\Local\npm-cache\_logs\2024-01-31T05_34_07_538Z-debug-0.log
错误截图
解决方法
1 进行代理设置为false,如下命令
-
npm config set proxy false
2 npm缓存清理,如下命令
-
npm cache verify