Files
MES/yawei-mes/问题整理.md
2026-04-02 10:39:03 +08:00

34 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

前端:
emitting CompressionPlugin ERROR Error: error:0308010C:digital envelope routines::unsupported
Error: error:0308010C:digital envelope routines::unsupported
at Hash (node:internal/crypto/hash:79:19)
at Object.createHash (node:crypto:139:10)
at D:\YAV\MES\yjh-mes\mes-ui\node_modules\compression-webpack-plugin\dist\index.js:243:42
at CompressionPlugin.compress (D:\YAV\MES\yjh-mes\mes-ui\node_modules\compression-webpack-plugin\dist\index.js:284:9)
at D:\YAV\MES\yjh-mes\mes-ui\node_modules\compression-webpack-plugin\dist\index.js:305:12
at _next1 (eval at create (D:\YAV\MES\yjh-mes\mes-ui\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:14:17)
at eval (eval at create (D:\YAV\MES\yjh-mes\mes-ui\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:33:1)
at D:\YAV\MES\yjh-mes\mes-ui\node_modules\copy-webpack-plugin\dist\index.js:91:9
解决方法:
每次执行前先执行下面的语句
```
-- 设置 OpenSSL 旧版提供程序
set NODE_OPTIONS=--openssl-legacy-provider
```
②通过 [nvm](https://github.com/nvm-sh/nvm) 安装 Node.js v16
```
nvm install 16
nvm use 16
```
后端
redis需要启动