本文主要是介绍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);};
}
这篇关于Vue_Bug error0308010Cdigital envelope routinesunsupported的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!