ruoyi前端代码无法启动,node16依旧报错:error:0308010C:digital envelope routines::unsupported?

RuoYi v3.8.6前端无法启动求助!求助各位大佬
官方gitee:https://gitee.com/y_project/RuoYi-Vue.git
启动报错信息:
xxxxxxx@xxxxxxxdeMacBook-Pro ruoyi-ui % npm run dev

ruoyi@3.8.6 dev
vue-cli-service serve

INFO Starting development server...
10% building 2/2 modules 0 activeError: error:0308010C:digital envelope routines::unsupported

at new Hash (node:internal/crypto/hash:71:19)

at Object.createHash (node:crypto:130:10)

at module.exports (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/webpack/lib/util/createHash.js:169:42)

at NormalModule._initBuildHash (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/webpack/lib/NormalModule.js:417:16)

at handleParseError (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/webpack/lib/NormalModule.js:471:10)

at /Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/webpack/lib/NormalModule.js:503:5

at /Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/webpack/lib/NormalModule.js:358:12

at /Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/loader-runner/lib/LoaderRunner.js:373:3

at iterateNormalLoaders (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/loader-runner/lib/LoaderRunner.js:214:10)

at iterateNormalLoaders (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/loader-runner/lib/LoaderRunner.js:221:10)

at /Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/loader-runner/lib/LoaderRunner.js:236:3

at runSyncOrAsync (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/loader-runner/lib/LoaderRunner.js:130:11)

at iterateNormalLoaders (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/loader-runner/lib/LoaderRunner.js:232:2)

at Array.<anonymous> (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/loader-runner/lib/LoaderRunner.js:205:4)

at Storage.finished (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)

at /Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9

at /Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/graceful-fs/graceful-fs.js:123:16

at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)

10% building 2/5 modules 3 active ...e/RuoYi-Vue/ruoyi-ui/node_modules/webpack-dev-server/client/index.js?http://192.168.1.110:1024&sockPath=/sockjs-nodenode:internal/...
this[kHandle] = new _Hash(algorithm, xofLen);

              ^

Error: error:0308010C:digital envelope routines::unsupported

at new Hash (node:internal/crypto/hash:71:19)

at Object.createHash (node:crypto:130:10)

at module.exports (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/webpack/lib/util/createHash.js:169:42)

at NormalModule._initBuildHash (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/webpack/lib/NormalModule.js:417:16)

at handleParseError (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/webpack/lib/NormalModule.js:471:10)

at /Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/webpack/lib/NormalModule.js:503:5

at /Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/webpack/lib/NormalModule.js:358:12

at /Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/loader-runner/lib/LoaderRunner.js:373:3

at iterateNormalLoaders (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/loader-runner/lib/LoaderRunner.js:214:10)

at Array.<anonymous> (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/loader-runner/lib/LoaderRunner.js:205:4)

at Storage.finished (/Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)

at /Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9

at /Users/jiyiming/code/ruoyi_springboot_vue/RuoYi-Vue/ruoyi-ui/node_modules/graceful-fs/graceful-fs.js:123:16

at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {

opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

查了很多,都是说node的版本16以上会出现这个问题,但是我已经降到16依旧没有解决。
我的系统情况:
m2芯片
node -v: v16.20.2
npm -v:8.19.4
vue --version: 2.6.0

package.json的vue版本:"vue": "2.6.12"

以上是 ruoyi前端代码无法启动,node16依旧报错:error:0308010C:digital envelope routines::unsupported? 的全部内容, 来源链接: utcz.com/p/935224.html

回到顶部