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:
npm ERR! C:\Users\Creative Impex Inter\AppData\Local\npm-cache\_logs\2022-10-17T17_56_18_211Z-debug-0.log 在安装防火墙时,我会收到这个错误。然后我尝试创建一个新的js项目,现在它甚至没有安装它。
发布于 2022-10-18 07:33:48
这个错误通常是由于网络不稳定,你可以使用纱线。
npm i -g yarn全局安装它,然后尝试设置您的项目,您可以使用yarn add而不是npm install安装依赖项。
https://stackoverflow.com/questions/74101398
复制相似问题