How to run the Vue project downloaded on GitHub

  • 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 cmd cdcommand to enter the project

  • Then, install dependencies after entering the project
    npm install

  • And then
    npm run serve

  • ok project is running

Guess you like

Origin blog.csdn.net/qq_43562262/article/details/106748782