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);
  };
}
相关推荐
EveryPossible2 分钟前
动态计算高度
vue.js
OC溥哥9993 分钟前
2D,MC像素风跑酷游戏用HTML实现
javascript·游戏·html
小徐不会敲代码~3 分钟前
Vue3 学习
前端·javascript·vue.js·学习
大猩猩X5 分钟前
vue vxe-gantt table 甘特图实现多个维度视图展示,支持切换年视图、月视图、周视图等
前端·javascript·甘特图·vxe-table·vxe-ui
m0_740043736 分钟前
Element-UI 组件库的核心组件及其用法
前端·javascript·vue.js·ui·elementui·html
游九尘8 分钟前
js:获取上一周,本周,下一周,上个月,本月,下个月的日期时间段
javascript
脾气有点小暴21 分钟前
H5 跳转方式
前端·javascript
Doris89330 分钟前
【JS】JS进阶--作用域、函数、解构赋值、数组方法
开发语言·前端·javascript
黑客思维者31 分钟前
核弹级漏洞突袭React生态:RSC反序列化何以成为RCE通道?
前端·javascript·react.js·远程代码执行漏洞
AndrewHZ44 分钟前
【GIS数据处理】什么是Cesium?从零入门Web端三维地理可视化工具
javascript·gis·web开发·cesium·gis前端·三维地理可视化