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
安装Firebase时出现此错误。然后我尝试创建一个新的Next js项目,但现在它甚至没有安装它。
1条答案
按热度按时间kgqe7b3p1#
这种错误通常是因为网络不稳定而来的,可以使用Yarn。
全局安装它,然后尝试设置您的项目,您可以使用
yarn add
而不是npm install
安装依赖项