What if vuejs fails to create a project?
What to do if vuejs fails to create a project? for this question, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
Vuejs failed to create a project solution: 1, uninstall nodejs;2, delete npm-cache and other folders deleted; 3, re-download nodejs installation; 4, enter the "npm config list" command; 5, use "vue init webpack" to create a project.
This article operating environment: windows7 system, Vue2.9.6 version, DELL G3 computer.
What if vuejs fails to create a project?
Problems with creation failure when creating a vue project
After installing the command for vue-cli:
Npm install-g @ vue/cli
To check whether the installation is successful after the installation is complete, you can enter the command: vue-V or vue-- version enter should publish this number.
Then there is the problem. I want to check the version number after installing vue-cli. After entering vue- V, there is a problem:
Resolve:
1. Uninstall nodejs first and delete the folder AppData\ Roaming\ npm and npm from C disk.
2. Delete the folder AppData\ Roaming\ npm-cache and npm-cache from the C disk.
3. Download the nodejs installation again and then install npm install vue-cli-g
4. After the installation is complete, enter npm config list
5. The version number will appear when you type vue-V, and you can use vue init webpack to create the project.
This is the answer to the question about what to do when vuejs failed to create a project. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.