Home > Web Front-end > JS Tutorial > How to deal with vue+init failure

How to deal with vue+init failure

php中世界最好的语言
Release: 2018-04-14 10:15:43
Original
2219 people have browsed it

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
Copy after login
Copy after login

//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
Copy after login
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template