This time I will show you how to handle vue init failure. What are the precautions for handling vue init failure? . The following is a practical case, let's take a look.
//Due to certain problems in the windows system, vue scaffoldinginstallationmay cause the first certificate to be lost
// Error: vue-cli · Failed to download repo vuejs-templates/webpack-simple: unable to verify the first certificate
//Simpler, you can also directly go to github to download the corresponding template (template), and then windows r, cmd,
vue init webpack-simple project --offline
//project is the project name
//Download at https://github.com/vuejs-templates/ (if you don’t understand English, just click Download ZIP in Clone or Download).
//Download webpack-simple or webpack. Webpack-simple is recommended here. Because webpack has pitfalls. The solution will be updated later = =. Similar to strict mode (similar!!!), the kind of disgusting thing that reports an error if there is an extra space
//Put the extracted folder in
//C:UsersAdministrator.vue-templates
//Administrator writes your username
//Go to your project folder and execute
vue init webpack-simple project --offline
Installing the Taobao mirror cnpm
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!
Recommended reading:
How to optimize the JSON data grouping of JS
ajax directly changes the state and deletes the non-refresh state
The above is the detailed content of How to deal with vue+init failure. For more information, please follow other related articles on the PHP Chinese website!