1, environment construction.
If you must install node. js, install Baidu Search. node. JS facilitates the use of NPM. It is best to install the latest version of node. js. NPM is a package management tool that is installed with Nodejs
To open the command line
&NBSP in your project environment, the folder where your project is located,
Open with: Hold down the SHIFT key, and right-click appears,
1) Build with VUE-CLI Scaffolding tool
Install VUE-CLI:NPM install-g vue-cli
2). Use VUE-CLI to initialize the project:
To create a new project based on the Webpack template
Vue init webpack my-project (MyProject is the project name, random fetch)
What do you mean by searching in English below?
is preceded by: project name, description. Author.
3). Enter the project to install dependencies: CD MY-PROJECT,NPM install
This is the situation that is being installed.
Installation complete.
4) Start running: npm run dev
5). Run a successful interface.
2. Directory under Working environment:
Vue.js Learning vue-cli Scaffolding construction