下载安装npm
下载安装cnpm
完成npm的安装后,再安装cnpm
切换源为 taobao 源
npm set registry https://registry.npm.taobao.org/
安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
安装vue-cli
https://cli.vuejs.org/zh/guide/installation.html
cnpm install -g @vue/cli
创建项目
vue create hello-world
进入cli目录里启动服务
cd cli
npm run serve
浏览器里打开页面看看效果:
http://localhost:8080/