node.js为全新版本Node.js v18.15.0。许多网站说是因为node版本过高,需要降级。
可以参考如下步骤和代码来进行。
把:
"scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build" },
改为:
修改package.json,在相关构建命令之前加入SET NODE_OPTIONS=--openssl-legacy-provider
"scripts": { "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build" },
保存并关闭。
- unsupported 0308010C envelope routines 0308010unsupported 0308010c envelope routines quot unsupported 0308010c envelope vue-element-admin unsupported 0308010c envelope quot unsupported react-app 0308010c unsupported envelope routines digital unsupported envelope routines错误 0308010 0308010c 0308010c error 39 envelope routines digital