Error occurs when running npm install after creating VueJS project
P粉161939752
P粉161939752 2024-02-25 16:20:25
0
1
378

I just installed VueJS and tried to create a project. I followed their installation and quick start guide VueJS Getting Started.

> npm init vue@latest

> cd (here is my project name)

> npm install

However, after executing > npm install, it returns the following message in the VSCode terminal:

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

How can I solve this problem? Am I doing this wrong?

P粉161939752
P粉161939752

reply all(1)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!