1.在idea中配置加载vue项目 2.运行时,如果报错:'vue-cli-service' 不是内部或外部命令,也不是可运行的程序; 运行 ``` npm install [ 慢的话用 npm install --registry https://registry.npm.taobao.org] ``` 运行(npm install报错)
npm ERR! code 1
npm ERR! path D:\DataX\Data-web-ui\datax-web-ui\node_modules\node-sass
npm ERR! command failed
个人原因是:node版本太高,所以我这边的处理方案,是卸载新版node,安装v12的,同时在idea设置中配置新安装的node ,解决。 node官网: Index of /dist/ (如果运行镜像报错):
npm ERR! Error while executing:
1. 执行:git config --global url."https://".insteadOf git://
2. 执行:npm install --registry=https://registry.npm.taobao.org
启动 ``` npm run dev ``` 打包 ``` npm run build:prod ```