# node 版本
建议安装 10.23.0
版本
# npm 配置
建议将以下内容粘贴到个人主目录下的 .npmrc 文件中,将依赖下载源服务器替换为国内速度较快的
phantomjs_cdnurl=https://npm.taobao.org/dist/phantomjs
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
registry=https://registry.npm.taobao.org/
ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/
sharp_libvips=http://npm.taobao.org/mirrors/sharp-libvips/
cypress=https://npm.taobao.org/mirrors/cypress/
# 依赖安装
# 在工程根目录下执行
npm install
# 启动开发服务
# 在工程根目录下执行
npm run serve
# 打包工程代码
# 在工程根目录下执行
npm run build
← 工程目录