创建VueJS项目后运行 npm install时出现错误
Error occurs when running npm install after creating VueJS project
我刚刚安装了 VueJS,并尝试创建一个项目。我遵循了他们的安装和快速入门指南 VueJS Getting Started.
> npm init vue@latest
> cd (My Project Name Here)
> npm install
但是,在执行 > npm install
之后,它 returns 在 VSCode 终端中显示以下消息:
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/lodash: 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\alscg\AppData\Local\npm-cache\_logs22-04-07T08_54_47_537Z-debug-0.log
我该如何解决这个问题?我做错了吗?
请试试这个link看起来已经回答了
我刚刚安装了 VueJS,并尝试创建一个项目。我遵循了他们的安装和快速入门指南 VueJS Getting Started.
> npm init vue@latest
> cd (My Project Name Here)
> npm install
但是,在执行 > npm install
之后,它 returns 在 VSCode 终端中显示以下消息:
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/lodash: 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\alscg\AppData\Local\npm-cache\_logs22-04-07T08_54_47_537Z-debug-0.log
我该如何解决这个问题?我做错了吗?
请试试这个link看起来已经回答了