Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

error:03000086:digital envelope routines

// Put this code on the top of the
// >> node_modules/webpack/lib/util/createHash.js
// "createHash.js" is a file name, find it and paste below code 

const crypto = require("crypto");
const originalCreateHash = crypto.createHash;

crypto.createHash = (...args) => {
  if (args[0] == 'md4') {
    return originalCreateHash('md5');
  }

  return originalCreateHash(...args);
};

// Tested on Fedora 36 with Node 16.
 
PREVIOUS NEXT
Tagged: #envelope #routines
ADD COMMENT
Topic
Name
2+4 =