34 lines
1.2 KiB
Markdown
34 lines
1.2 KiB
Markdown
|
|
前端:
|
|||
|
|
|
|||
|
|
①
|
|||
|
|
|
|||
|
|
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需要启动
|