Restore Problem site:
When using VUE init Webpack projectname for the first time, two NPM install-g vue-cli were performed due to operational errors, and then the Webpack template was created using VUE init Vuedemo Vuedemo.
VUE-CLI Failed to download repo vuejs-templates/vuedemo:response code 404 (Not Found);
Workaround:
Perform the following three commands to check the environment:
Node-v (lowercase v); If the node version is not displayed, first download and install node
Vue-v (capital V), if the Vue version is not shown, NPM i vue-cli-g install
Webpack-v (lowercase v); If you need to reinstall, use NPM install Webpack-g
When three conditions are met,
Use vue init webpack vuedemo (vuedemo is my own random name );
Experience Summary:
Webpack There is no global installation, you will need to reinstall Webpack each time you create a new project, otherwise it is reported as an error
VUE-CLI installation failed failed to download repo vuejs-templates/vuedemo:response code 404 (Not Found)