Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

error:03000086:digital envelope routines::initialization error

// 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.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #envelope #error
ADD COMMENT
Topic
Name
1+9 =