赞
踩
在 package.json.增加 set NODE_OPTIONS=–openssl-legacy-provider & 如图
在package.json
"scripts": {
"serve": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
请不要在build lint里面增加,增加了也没有用。必须在serve里面增加
无效
"scripts": {
"serve": "vue-cli-service serve",
"build": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service build",
"lint": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service lint"
},
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。