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);
  };
}
相关推荐
GISer_Jing10 小时前
Three.js着色器编译机制深度解析
javascript·webgl·着色器
丷丩10 小时前
MapLibre GL JS第22课:查看本地GeoJSON
前端·javascript·map·mapbox·maplibre gl js
油炸自行车10 小时前
Claude Code 错误:API Error: 400 Failed to deserialize the JSON body into the
开发语言·javascript·json·trae·claude code·api error 400
丷丩14 小时前
MapLibre GL JS第19课:实时更新要素
前端·javascript·gis·map·mapbox·maplibre gl js
xiaohua0708day15 小时前
Lodash库
前端·javascript·vue.js
万物皆对象66615 小时前
切换路由时页面空白问题(vue3)
前端·vue.js·typescript
突然好热15 小时前
TS 调试技巧
前端·javascript·typescript
h64648564h15 小时前
Flutter 国际化(i18n)全指南:一键切换中/英/日多语言
前端·javascript·flutter
丷丩17 小时前
MapLibre GL JS第8课:禁用滚动缩放
javascript·mapbox·maplibre gl js
李剑一17 小时前
小红书前端架构面试问的挺深入啊!面试官:Vue中组合式API与选项式API的设计权衡
vue.js·面试