Vue 打包 Error: error:0308010C:digital envelope routines::unsupported

news/2024/10/6 4:05:41

这个错误通常与Node.js的加密模块和OpenSSL版本有关
出现这个错误是因为 node.js V17版本中最近发布的OpenSSL3.0, 而OpenSSL3.0对允许算法和密钥大小增加了严格的限制,可能会对生态系统造成一些影响.

js/app.8d066b51.js from Terser
Error: error:0308010C:digital envelope routines::unsupportedat new Hash (node:internal/crypto/hash:79:19)at Object.createHash (node:crypto:139:10)at D:\Projects\15.ithoth\01.SourceCode\Web\branches\V1.0.13\node_modules\terser-webpack-plugin\dist\index.js:217:37at Array.forEach (<anonymous>)at TerserPlugin.optimizeFn (D:\Projects\15.ithoth\01.SourceCode\Web\branches\V1.0.13\node_modules\terser-webpack-plugin\dist\index.js:160:259)at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\Projects\15.ithoth\01.SourceCode\Web\branches\V1.0.13\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:7:1)at AsyncSeriesHook.lazyCompileHook (D:\Projects\15.ithoth\01.SourceCode\Web\branches\V1.0.13\node_modules\webpack\node_modules\tapable\lib\Hook.js:154:20)at D:\Projects\15.ithoth\01.SourceCode\Web\branches\V1.0.13\node_modules\webpack\lib\Compilation.js:1409:36at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\Projects\15.ithoth\01.SourceCode\Web\branches\V1.0.13\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)at AsyncSeriesHook.lazyCompileHook (D:\Projects\15.ithoth\01.SourceCode\Web\branches\V1.0.13\node_modules\webpack\node_modules\tapable\lib\Hook.js:154:20)at D:\Projects\15.ithoth\01.SourceCode\Web\branches\V1.0.13\node_modules\webpack\lib\Compilation.js:1405:32

解决方案

Windows系统 增加环境变更

set NODE_OPTIONS=--openssl-legacy-provider

image

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hjln.cn/news/43089.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈,一经查实,立即删除!

相关文章

Java整合FreeMarker导出Pdf文件

引入依赖 <!--Freemarker wls--><dependency><groupId>org.freemarker</groupId><artifactId>freemarker</artifactId><version>2.3.30</version></dependency><dependency><groupId>com.itextpdf.tool<…

PHP文件上传接口

文件上传接口 上传在项目/runtime/storage/下,返回的是相对路径.// 文件上传接口public function uploadAjax(){// 获取上传的文件$file = Request::file(file);// 验证规则$validate = Validate::rule([file => fileExt:jpg,jpeg,png,gif|fileSize:10485760, // 限制文件扩…

The field file exceeds its maximum permitted size of 1048576 bytes

问题—基于Springboot 项目,文件上传功能报错 Caused by: The field file exceeds its maximum permitted size of 1048576 bytes. 文件的大小超出了允许的范围。错误原因 SpringBoot内嵌的 Tomcat 默认的所有上传的文件大小为 1MB,超出这个大小就会报错,解决这个问题需要更…

云盘下载加速

1:下载助手 下面都是油猴插件 网盘直链下载助手 配合其他下载器达到加速下载,百度、夸克 等主流网盘都支持,可以选择多个文件,但不能选择文件夹下载。 123网盘直接拥 IDM 满速下载就行,直接浏览器下载,不需要保存到自己网盘里。 https://greasyfork.org/zh-CN/scripts/43…

计算机简史第五章 未来时代

未来计算机会是什么样呢?‍未来计算机会是什么样呢?‍ ‍ 光学计算 世界上速度最快的就是光,尽管电的传播速度也接近光速,但光还是凭借许多压倒性的优势不断吸引着计算机科学家们的注意力:电路布线时,为避免短路和电磁干扰,必须确保线路间的相互隔离,多条光波却可以直接…

Xshell如何修改编辑文件 Xshell如何保存修改后的文件

软件版本:Xshell 7 Xshell是一款功能强大的终端模拟软件,它可以让用户通过SSH、Telnet等协议远程连接到Linux服务器,并执行各种命令。在使用Xshell时,有时候我们需要修改服务器上的文件,或者保存我们的修改。那么,Xshell如何修改编辑文件,Xshell如何保存修改后的文件呢?…

杭州的 IT 崩盘了么?

大家好,我是R哥。 今天分享一个爽飞了的面试辅导 case:这个杭州兄弟空窗期 1 个月+,面试了 6 家公司 0 Offer,不知道问题出在哪,难道是杭州的 IT 崩盘了么? 报名面试辅导后,经过一个多月的辅导打磨,现在成功入职某上市公司,涨薪 30%+,955 工作制,不咋加班,还不卷。…

MQCal工程算量V1.3.3.30(2024-6-10)更新增加辅助输入

MQCal工程算量辅助输入来了! 1、数据输入设置辅助输入数据设置 辅助输入框可以设置辅助输入所需要的数据,并且可以设置数据对应的列。这是一个完全自定义的设置,哪一列对应什么输入数据。 2、数据上屏查找:辅助输入查找数据并排序 数据查找支持拼英首字母查找,查找的数据…