1. Introduction:

Vue-cli is a scaffolding for vue.js, used to automatically generate vue.js+webpack project templates, divided into vue init webpack-simple project name and vue init webpack project name. Of course, first you install vue, Webpack, Node and other necessary environment

2, the installation

npm install -g @vue/cli
Copy the code

3, the start

3.1 hello – world

vue create hello-world
Copy the code

4, an error

4.1 Vue create hello-world error
Vue: cannot load file C:\node-v11.0.0-win-x64\node-v11.0.0-win-x64\vue. Ps1 because scripts are not allowed to run on this system. For more information, please refer to the about_Execution_Policies https:/go.microsoft.com/fwlink/?LinkID=135170. Position line :1 Character :1Copy the code

Solution: Delete the ****/*****/ vue.ps1 file,