【安装步骤】
一、安装node.js
1.前往node.js官网下载并安装工具,这里安装路径选到D盘,D: odejs
安装完毕后在命令行输入以下命令测试是否安装成功,正确会出现版本号
npm -v
# 安装依赖
npm install
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org
# 启动服务
npm run dev