当前位置: 首页 > article >正文

解决报错:rror: error:0308010C:digital envelope routines::unsupported

报错详细内容:

INFO  Starting development server...
10% building 2/5 modules 3 active ...er\lib\index.js!F:\vscode\packages\vue-elementui-hrm\src\main.jsError: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:68:19)
    at Object.createHash (node:crypto:138:10)
    at module.exports (F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\lib\NormalModule.js:471:10)
    at F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\lib\NormalModule.js:503:5
    at F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\lib\NormalModule.js:358:12
    at F:\vscode\packages\vue-elementui-hrm\node_modules\loader-runner\lib\LoaderRunner.js:373:3      
    at iterateNormalLoaders (F:\vscode\packages\vue-elementui-hrm\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (F:\vscode\packages\vue-elementui-hrm\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
    at F:\vscode\packages\vue-elementui-hrm\node_modules\loader-runner\lib\LoaderRunner.js:236:3      
    at runSyncOrAsync (F:\vscode\packages\vue-elementui-hrm\node_modules\loader-runner\lib\LoaderRunner.js:130:11)
    at iterateNormalLoaders (F:\vscode\packages\vue-elementui-hrm\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
    at Array.<anonymous> (F:\vscode\packages\vue-elementui-hrm\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
    at Storage.finished (F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
    at F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
node:internal/crypto/hash:68
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:68:19)
    at Object.createHash (node:crypto:138:10)
    at module.exports (F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\lib\NormalModule.js:471:10)
    at F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\lib\NormalModule.js:503:5
    at F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\lib\NormalModule.js:358:12
    at F:\vscode\packages\vue-elementui-hrm\node_modules\loader-runner\lib\LoaderRunner.js:373:3      
    at iterateNormalLoaders (F:\vscode\packages\vue-elementui-hrm\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at Array.<anonymous> (F:\vscode\packages\vue-elementui-hrm\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
    at Storage.finished (F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
    at F:\vscode\packages\vue-elementui-hrm\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
    at F:\vscode\packages\vue-elementui-hrm\node_modules\graceful-fs\graceful-fs.js:123:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {        
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

解决方案:

调整package.json文件内的scripts配置块。

"scripts": {
    "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
    "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
    "lint": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint"
  },


http://www.kler.cn/a/407482.html

相关文章:

  • 百度主动推送可以提升抓取,它能提升索引量吗?
  • OpenCV相机标定与3D重建(3)校正鱼眼镜头畸变的函数calibrate()的使用
  • 使用 Oracle.DataAccess.Client 驱动 和 OleDB 调用Oracle 函数的区别
  • 【前端】第12节:Vue3新特性
  • springboot整合hive
  • 系统性能优化方法论详解:从理解系统到验证迭代
  • 利用软件实现发票的批量查验,并自动截图保存 91发票查验助手
  • 【C++】关于指针Free和链表循环释放的问题
  • websocket消息的实现
  • 【公开笔记】小白学习vue3完整版
  • 智能体来了:构建用于具有结构化输出的内容审核的智能 AI Agent 智能体
  • 【Isaac Sim】加载自带模型或示例时报 Isaac Sim is not responding
  • 联想ThinkServer服务器主要硬件驱动下载
  • 【单片机基础】如何选择合适的低功耗单片机
  • YOLOv11融合[NeurlS2022]递归门控卷积gnconv模块及相关改进思路
  • 10 —— Webpack打包模式
  • Linux使用经验记录
  • 韦东山hal库 使用光敏传感器控制蜂鸣器
  • GoZero对接GPT接口的设计与实现:问题分析与解决
  • 深入探索:JavaScript中实现乱序函数的艺术
  • 电脑禁用U盘的四种简单方法(电脑怎么阻止u盘使用)
  • HDR视频技术之三:色度学与颜色空间
  • [CISCN 2019初赛]Love Math 详细题解
  • Centos Stream 9安装Jenkins-2.485 构建自动化项目步骤
  • 【SKFramework框架核心模块】3-2、音频管理模块
  • 第10章 JavaScript的应用作业