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版本。

windows将已安装的nodejs高版本降级为低版本(使用nvm来管理node.js的版本)及过程中遇见的问题_node版本太高怎么办-CSDN博客文章浏览阅读4.8k次,点赞12次,收藏26次。windows将已安装的nodejs高版本降级为低版本及过程中遇见的问题,使用nvm来管理node.js的版本真的很方便,这样就可以根据自己的需要来回切换node.js版本!_node版本太高怎么办https://blog.csdn.net/qq_52126119/article/details/126328752?fromshare=blogdetail&sharetype=blogdetail&sharerId=126328752&sharerefer=PC&sharesource=2301_76671906&sharefrom=from_link

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐