npm-node版本过高运行项目失败(Error: error:0308010C:digital envelope routines::unsupported)
node版本过高运行项目失败(Error: error:0308010C:digital envelope routines::unsupported)Error: error:0308010C:digital envelope routines::unsupported
·
1.运行具体报错
npm run serve
注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
Browserslist: caniuse-lite is outdated. Please run:
uni-app 有新版本发布,请执行 `npx @dcloudio/uvm@latest` 更新,更新日志详见:https://download1.dcloud.net.cn/hbuilderx/changelog/4.36.2024112817.html
Error: error:0308010C:digital envelope routines::unsupported
uni-app 有新版本发布,请执行 `npx @dcloudio/uvm@latest` 更新,更新日志详见:https://download1.dcloud.net.cn/hbuilderx/changelog/4.36.2024112817.html
Error: error:0308010C:digital envelope routines::unsupported
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
2.解决方法
node.js版本过高,根据版本依赖进行降低版本,具体根据项目版本;可参考同事小伙伴能跑的项目node版本来进行调整。
可参考以下博主哥哥的方法,删除node版本。本人仅删除node版本从node18降低到node14,未使用nvm管理node.js版本。
更多推荐

所有评论(0)