Recently, I just learned the knowledge about Vue scaffold, so I sorted out the process of building a project with Vue cli
1. Installation node.js Environmental Science
- Download from the official website: https://nodejs.org/en/download/
- After downloading, open it and keep going to next
- Open CMD and enter:
node -v
npm -v
If the relevant version number appears, the installation is successful
2. Global installation of Vue cli
npm install vue-cli -g
The results are as follows
3. Select the path and create a project. My project name istabbar
vue init webpack tabbar
4. Running projects
Enter the directory where the file is located
cd tabbar
Installation dependency
npm install
Running projects
npm run dev
5. Open the initial interface through the project display path
The interface is as follows
6. Finally, get a file directory like this
Our code is written in the SRC folder