Vue error when creating project

 ERROR  Failed to get response from https://registry.npmmirror.com/vue-cli-version-marker


Vue CLI v5.0.8
Failed to check for updates
? Target directory F:\yueya\Vue_projects\vue3_test already exists. Pick an action: Overwrite

Removing F:\yueya\Vue_projects\vue3_test...


Vue CLI v5.0.8
Failed to check for updates
? Please pick a preset: Default ([Vue 3] babel, eslint)


Vue CLI v5.0.8
Failed to check for updates
✨  Creating project in F:\yueya\Vue_projects\vue3_test.
⚙️  Installing CLI plugins. This might take a while...

 ERROR  Failed to get response from https://registry.npmmirror.com/binary-mirror-config

Vue reports an error when generating the project:

Solution:

1. Check your own network, sometimes the network is too slow and the project creation will fail

2. The npm version is too low, which can be solved by the following:

npm install -g npm

 Then create a project: vue create project name

vue create vue3_test

 3. The solution obtained through chatgpt:

 

Guess you like

Origin blog.csdn.net/qq_52154373/article/details/129600162