Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

构建前端网页一直出错 #532

Open
hunteris666 opened this issue Dec 29, 2022 · 3 comments
Open

构建前端网页一直出错 #532

hunteris666 opened this issue Dec 29, 2022 · 3 comments

Comments

@hunteris666
Copy link

尝试多次,多种解决方案均未能解决
root@206:~/fiora# yarn build:web yarn run v1.22.19 @fiora/web: Error: error:0308010C:digital envelope routines::unsupported @fiora/web: at new Hash (node:internal/crypto/hash:71:19) @fiora/web: at Object.createHash (node:crypto:133:10) @fiora/web: at BulkUpdateDecorator.hashFactory (/root/fiora/packages/web/node_modules/webpack/lib/util/createHash.js:145:18) @fiora/web: at BulkUpdateDecorator.update (/root/fiora/packages/web/node_modules/webpack/lib/util/createHash.js:46:50) @fiora/web: at RawSource.updateHash (/root/fiora/packages/web/node_modules/webpack/node_modules/webpack-sources/lib/RawSource.js:64:8) @fiora/web: at NormalModule._initBuildHash (/root/fiora/packages/web/node_modules/webpack/lib/NormalModule.js:868:17) @fiora/web: at handleParseResult (/root/fiora/packages/web/node_modules/webpack/lib/NormalModule.js:934:10) @fiora/web: at /root/fiora/packages/web/node_modules/webpack/lib/NormalModule.js:1026:4 @fiora/web: at processResult (/root/fiora/packages/web/node_modules/webpack/lib/NormalModule.js:743:11) @fiora/web: at /root/fiora/packages/web/node_modules/webpack/lib/NormalModule.js:807:5 @fiora/web: Browserslist: caniuse-lite is outdated. Please run: @fiora/web: npx browserslist@latest --update-db @fiora/web: Why you should do it regularly: @fiora/web: https://github.com/browserslist/browserslist#browsers-data-updating @fiora/web: node:internal/crypto/hash:71 @fiora/web: this[kHandle] = new _Hash(algorithm, xofLen); @fiora/web: ^ @fiora/web: Error: error:0308010C:digital envelope routines::unsupported @fiora/web: at new Hash (node:internal/crypto/hash:71:19) @fiora/web: at Object.createHash (node:crypto:133:10) @fiora/web: at BulkUpdateDecorator.hashFactory (/root/fiora/packages/web/node_modules/webpack/lib/util/createHash.js:145:18) @fiora/web: at BulkUpdateDecorator.update (/root/fiora/packages/web/node_modules/webpack/lib/util/createHash.js:46:50) @fiora/web: at RawSource.updateHash (/root/fiora/packages/web/node_modules/webpack/node_modules/webpack-sources/lib/RawSource.js:64:8) @fiora/web: at NormalModule._initBuildHash (/root/fiora/packages/web/node_modules/webpack/lib/NormalModule.js:868:17) @fiora/web: at handleParseResult (/root/fiora/packages/web/node_modules/webpack/lib/NormalModule.js:934:10) @fiora/web: at /root/fiora/packages/web/node_modules/webpack/lib/NormalModule.js:1026:4 @fiora/web: at processResult (/root/fiora/packages/web/node_modules/webpack/lib/NormalModule.js:743:11) @fiora/web: at /root/fiora/packages/web/node_modules/webpack/lib/NormalModule.js:807:5 { @fiora/web: opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], @fiora/web: library: 'digital envelope routines', @fiora/web: reason: 'unsupported', @fiora/web: code: 'ERR_OSSL_EVP_UNSUPPORTED' @fiora/web: } @fiora/web: Node.js v18.12.1 @fiora/web: error Command failed with exit code 1. @fiora/web: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. lerna ERR! yarn run build:web exited 1 in '@fiora/web' error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. root@206:~/fiora#

@pengwenhua666
Copy link

同报错,大佬解决了吗?

@hunteris666
Copy link
Author

hunteris666 commented Jan 17, 2023

@pengwenhua666 ,没,我认为是环境问题(指Node.js

@ouyangyanhuo
Copy link

Node.js 版本切换到 v14,重新安装 yarn 并重新 安装依赖、构建客户端

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants