问题描述:
set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve
node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
npm ERR! code ELIFECYCLE
npm ERR! errno 9
npm ERR! joolun-plus-ui@2.0.2 serve: `set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve`
npm ERR! Exit status 9
npm ERR!
npm ERR! Failed at the joolun-plus-ui@2.0.2 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
解决办法:
替换为:
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
结果就好了: