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 小时前
Image(图像)的用法
java·前端·javascript
早點睡3902 小时前
ReactNative项目OpenHarmony三方库集成实战:react-native-swiper
javascript·react native·react.js
jump_jump3 小时前
深入 JavaScript Iterator Helpers:从 API 到引擎实现
javascript·性能优化
swipe3 小时前
把 JavaScript 原型讲透:从 `[[Prototype]]`、`prototype` 到 `constructor` 的完整心智模型
前端·javascript·面试
Dxy12393102163 小时前
JS发送请求的方法详解
开发语言·javascript·ecmascript
harrain4 小时前
antvG2折线图和区间range标记同时绘制
前端·javascript·vue.js·antv·g2
网络点点滴6 小时前
组件通信-作用域插槽
前端·javascript·vue.js
LZQ <=小氣鬼=>6 小时前
React 图片放大镜组件使用文档
javascript·react.js·前端框架·ecmascript
kyriewen116 小时前
异步编程:从“回调地狱”到“async/await”的救赎之路
开发语言·前端·javascript·chrome·typescript·ecmascript·html5
早點睡3907 小时前
ReactNative项目Openharmony三方库集成实战:@react-native-clipboard/clipboard
javascript·react native·react.js