Files
MES/yawei-mes/问题整理.md

34 lines
1.2 KiB
Markdown
Raw Normal View History

2026-04-02 10:38:23 +08:00
前端:
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需要启动