安装node.js
安装vue-cli脚手架
生成前端项目
首先切换国内淘宝源:npm config set registry https://registry.npm.taobao.org
查看是否成功:npm config get registry
清理缓存:npm cache clean -f
npm初始化项目:vue init webpack livestream
初始化成功,启动服务:
cd livestream
npm run dev
访问地址:http://localhost:8080