安装Node.js
https://nodejs.org/en/
cmd
node -v
查看node.js版本 检查是否安装成功
npm -v
查看npm版本 检查是否安装成功
安装npm国内镜像
npm config set registry https://registry.npm.taobao.org
验证镜像
npm config get registry
如果返回https://registry.npm.taobao.org,说明镜像配置成功
安装Vue
https://cn.vuejs.org/v2/guide/installation.html#命令行工具-CLI
https://cli.vuejs.org/zh/guide/installation.html
Vue -CLI3安装
npm install -g @vue/cli
查看Vue版本
vue --version
vue -V
创建一个项目
https://cli.vuejs.org/zh/guide/creating-a-project.html#vue-create
vue create hello-world
运行项目
cd hello-world
npm run serve
查看效果
打开Chrome
http://localhost:8080/
HBuilder X安装
http://www.dcloud.io/hbuilderx.html