I have seen a lot of scaffolding project building process on the Internet, but I think the process is still very cumbersome, so I summarized the following steps in a nutshell:
1. Installation node. Js
Go to the node.js official website to install the Node package, this will be very useful for future development
The website is hereNode. Js’s official website
If the installation is successful, win+r and then CMD enter node -v to see if the installation is successful. If the installation is successful, the version will be displayed
2. Install the Vue – cli
As in the previous step, go directly to CMD and type the following command:
NPM install vue-cli -g NPM install vue-cli -g
Ps: Some online need to install Taobao mirror I feel completely unnecessary to install
Vue init webpack Demo1 (demo1 is the name of your project)
There will be a number of options for you to write the author name, and you can press enter to skip it. There will be a vue-router for y, and all the other parts will be n, which is not used by other beginners.
Ps: yes use NPM
Finally: you can see your Vue project created successfully directly into your folder CD and then NPM run dev is run and done. Ps: Writing is not easy. Thumbs up