1、使用VUE前需要先安装node.js
2、进入项目路径文件夹下
3、vue init -f
4、使用淘宝的镜像
npm install --registry=https://registry.npm.taobao.org
npm install时可能会报错,我遇到的是node-sass报错
解决方法:
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install node-sass@latest
5、npm run dev
6、打开网页,输入网址进行使用