Operation of Vue project
- Before doing this, make sure that Node.js is installed on your computer
1. Install cnpm
- Because some resources of npm are blocked or foreign resources, it often leads to failure when installing dependent packages with npm
- Enter in the command line
npm install -g cnpm --registry=http://registry.npm.taobao.org
2. Install webpack
npm install webpack -g
3. Install vue-cli
cnpm install vue-cli -g
- At this point, the entire environment is set up, and then run the project
4. Run
-
First
use cmdcd
command to enter the project -
Then, install dependencies after entering the project
npm install
-
And then
npm run serve
-
ok project is running