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);};
}