Download and install npm cnpm

Download and install npm

http://nodejs.cn/download/

Download and install cnpm

After completion of the installation npm, install cnpm

https://npm.taobao.org/

Source is switched source taobao

npm set registry https://registry.npm.taobao.org/

Installation cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

installationvue-cli

https://cli.vuejs.org/zh/guide/installation.html

cnpm install -g @vue/cli

Create a project

vue create hello-world

Start entering the cli directory service

  • cd cli
  • npm run serve

The browser opens the page to see the effect:

http://localhost:8080/

Download vue-router.js

https://router.vuejs.org/zh/installation.html

Guess you like

Origin www.cnblogs.com/haima/p/11235640.html