首页 > 其他分享 >错误解决Error: error:0308010C:digital envelope routines::unsupported

错误解决Error: error:0308010C:digital envelope routines::unsupported

时间:2023-10-03 09:00:46浏览次数:45  
标签:0308010C vue cli service routines legacy build scripts digital

问题原因:

查了下原因,主要是 nodeJs V17 版本发布了 OpenSSL3.0 对算法和秘钥大小增加了更为严格的限制,nodeJs v17 之前版本没影响,但 V17 和之后版本会出现这个错误。 我的node版本是v18.12.1

解决方式(仅 windows):

在 package.json 的 scripts 中新增 SET NODE_OPTIONS=--openssl-legacy-provider

添加前:

"scripts": {

"dev": "vue-cli-service serve",

"build:prod": "vue-cli-service build"

},

添加后

"scripts": {

"dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",

"build:prod": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build"

},
————————————————
版权声明:本文为CSDN博主「Alan_Walker1」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Alan_Walker1/article/details/129682253

标签:0308010C,vue,cli,service,routines,legacy,build,scripts,digital
From: https://www.cnblogs.com/asplover/p/17740794.html

相关文章

  • Webpack报错Error: error:0308010C:digital envelope routines::unsupported处理
    在学习组件库流程打包的时候报错找不到module,后来改了版本又报错Error:error:0308010C:digitalenveloperoutines::unsupported报错原因:node17+版本对发布的OpenSSL3.0,而OpenSSL3.0对允许算法和密钥大小增加了严格的限制,可能会对生态系统造成一些影响.解决方案:在网上搜索......
  • Go - ERROR: fatal error: all goroutines are asleep - deadlock!
    main.go:packagemainimport"fmt"funcmain(){ch:=make(chanint)ch<-1a:=<-chfmt.Println(a)}Goterror:zzh@ZZHPC:/zdata/MyPrograms/Go/testing$gorunmain.gofatalerror:allgoroutinesareasleep-deadlo......
  • digital envelope routines::unsupported
    修改package.json,在相关构建命令之前加入SETNODE_OPTIONS=--openssl-legacy-provider"scripts":{"serve":"SETNODE_OPTIONS=--openssl-legacy-provider&&vue-cli-serviceserve","build":"SETNODE_OPTIONS=--opens......
  • 数字信号处理 Digital Signal Processing
    通信、控制和信号处理导论IntroductionToCommunication,Control,AndSignalProcessing6.011|Spring2010|Undergraduate(本科生)课程描述本课程将信号、系统和推理作为通信、控制和信号处理的统一主题进行研究。课题包括由确定性和随机信号驱动的线性系统的输入输出和......
  • node18 vue2启动报错 error:0308010C:digital envelope routines::unsupported
    出现原因貌似是因为是因为node17版本开始发布的OpenSSL3.0,而OpenSSL3.0对允许算法和密钥大小增加了严格的限制,可能会对生态系统造成一些影响。解决方法第一种方法降低node版本降低到17以下即可,如项目不能降低版本看后面的解决方式第二种方法设置NODE_OPTIONS环境变量......
  • [ Vue ] opensslErrorStack: [ ‘error:03000086:digital envelope routines::initial
    报错触发场景:Mac系统,开发工具启动从其他地方拷贝或者git克隆来的,非自建前端Vue项目时。报错内容如下: opensslErrorStack:['error:03000086:digitalenveloperoutines::initializationerror'], library:'digitalenveloperoutines', reason:'unsupported', code......
  • 数字基因表达谱(Digital Gene Expression Profiling,DGE)
    数字基因表达谱(DigitalGeneExpressionProfiling,DGE) 利用新一代高通量测序技术和高性能计算分析技术,能够全面、经济、快速地检测某一物种特定组织在特定状态下的基因表达情况。 数字基因表达谱已被广泛应用于基础科学研究、医学研究和药物研发等领域。 楼主应该是......
  • Vue项目启动 报错error:0308010C:digital envelope routines::unsupported
    出现这个错误是因为node.jsV17版本中最近发布的OpenSSL3.0,而OpenSSL3.0对允许算法和密钥大小增加了严格的限制,可能会对生态系统造成一些影响.解决方法package.json增加配置"scripts":{"serve":"setNODE_OPTIONS=--openssl-legacy-provider&&vue-cli-serviceserve......
  • QNX-9—QNX官网文档翻译—Resource Managers—Handler routines
    注:本文翻译自QNXSoftwareDevelopmentPlatform-->Programming-->GettingStartedwithQNXNeutrino-->ResourceManagershttp://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.getting_started/topic/s1_resmgr_routines.html并非所有outcalls都......
  • 使用 node 17以上版本运行项目报错--Error: error:0308010C:digital envelope routine
    一、起因#由于电脑重装系统,重新下载nodejs,自然更新到最新版本18,之前的版本才16。更新到最新nodejs版本后,运行vue文件,报错:this[kHandle]=new_Hash(algorithm,xofLen);^Error:error:0308010C:digitalenveloperoutines::unsupported   二、探索......