Vue_Bug error0308010Cdigital envelope routinesunsupported

Bug描述:

error0308010Cdigital envelope routinesunsupported

解决方法:

Just add this to the top of vue.config.js :

复制代码
const crypto = require('crypto');

/**
 * md4 algorithm is not available anymore in NodeJS 17+ (because of lib SSL 3).
 * In that case, silently replace md4 by md5 algorithm.
 */
try {
  crypto.createHash('md4');
} catch (e) {
  console.warn('Crypto "md4" is not supported anymore by this Node version');
  const origCreateHash = crypto.createHash;
  crypto.createHash = (alg, opts) => {
    return origCreateHash(alg === 'md4' ? 'md5' : alg, opts);
  };
}
相关推荐
一 乐2 分钟前
游戏助手|游戏攻略|基于SprinBoot+vue的游戏攻略系统小程序(源码+数据库+文档)
数据库·vue.js·spring boot·后端·游戏·小程序
倚肆5 分钟前
HTMLElement 与MouseEvent 事件对象属性详解
前端·javascript
青衫码上行24 分钟前
【Java Web学习 | 第12篇】JavaScript(6)DOM
java·开发语言·前端·javascript·学习
毕设十刻1 小时前
基于Vue的鲜花销售系统33n62(程序 + 源码 + 数据库 + 调试部署 + 开发环境配置),配套论文文档字数达万字以上,文末可获取,系统界面展示置于文末
前端·数据库·vue.js
San30.1 小时前
JavaScript 深度解析:从 map 陷阱到字符串奥秘
开发语言·javascript·ecmascript
初遇你时动了情1 小时前
前端使用TensorFlow.js reactjs调用本地模型 实现图像、文本、音频/声音、视频相关识别
前端·javascript·tensorflow
十一.3661 小时前
66-69 原型对象,toString(),垃圾回收
开发语言·javascript·原型模式
AiXed5 小时前
PC微信WDA算法
前端·javascript·macos
博客zhu虎康6 小时前
React+Ant design
javascript·react.js·ecmascript
一只小阿乐10 小时前
react 封装弹框组件 传递数据
前端·javascript·react.js