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

run serve报错 #1442

Open
pandaymx opened this issue Sep 18, 2023 · 3 comments
Open

run serve报错 #1442

pandaymx opened this issue Sep 18, 2023 · 3 comments
Labels
question Further information is requested

Comments

@pandaymx
Copy link

Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
INFO Starting development server...
[51%] building (824/1568 modules)
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
[95%] emitting (emit ThemeColorReplacer)
Extracted theme color css content length: 28771
node:internal/crypto/hash:69
this[kHandle] = new _Hash(algorithm, xofLen);
^

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:133:10)
at getHash (E:\vue\my-project\node_modules.pnpm\[email protected]\node_modules\webpack-theme-color-replacer\src\replaceFileName.js:17:21)
at replaceFileName (E:\vue\my-project\node_modules.pnpm\[email protected]\node_modules\webpack-theme-color-replacer\src\replaceFileName.js:10:68)
at getFileName (E:\vue\my-project\node_modules.pnpm\[email protected]\node_modules\webpack-theme-color-replacer\src\Handler.js:34:40)
at Handler.handle (E:\vue\my-project\node_modules.pnpm\[email protected]\node_modules\webpack-theme-color-replacer\src\Handler.js:24:26)
at E:\vue\my-project\node_modules.pnpm\[email protected]\node_modules\webpack-theme-color-replacer\src\index.js:28:26
at Hook.eval [as callAsync] (eval at create (E:\vue\my-project\node_modules.pnpm\[email protected]\node_modules\tapable\lib\HookCodeFactory.js:33:10), :14:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (E:\vue\my-project\node_modules.pnpm\[email protected]\node_modules\tapable\lib\Hook.js:18:14)
at Compiler.emitAssets (E:\vue\my-project\node_modules.pnpm\[email protected]\node_modules\webpack\lib\Compiler.js:891:19) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

@pandaymx pandaymx added the question Further information is requested label Sep 18, 2023
@edWin-m
Copy link

edWin-m commented Oct 18, 2023

@pandaymx If you are still facing this issue try enabling the legacy OpenSSL provider.

export NODE_OPTIONS=--openssl-legacy-provider

@21307369
Copy link

21307369 commented Mar 7, 2024

windows 打开CMD 设置用户环境变量
setx NODE_OPTIONS --openssl-legacy-provider

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

No branches or pull requests

4 participants