HDRI-to-CubeMap icon indicating copy to clipboard operation
HDRI-to-CubeMap copied to clipboard

Unfortunately fails with the OpenSSL crypto error

Open ProgrammingLife opened this issue 2 years ago • 2 comments

→ npm start                                                                                                                                                                                                                         ▸  Tue Aug 23, 05:17:50 

> [email protected] start
> webpack-dev-server --mode=development

(node:27368) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
ℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/guest/dir/HDRI-to-CubeMap/public
ℹ 「wds」: 404s will fallback to /index.html
node:internal/crypto/hash:67
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at module.exports (/home/guest/dir/HDRI-to-CubeMap/node_modules/webpack/lib/util/createHash.js:90:53)
    at NormalModule._initBuildHash (/home/guest/dir/HDRI-to-CubeMap/node_modules/webpack/lib/NormalModule.js:384:16)
    at handleParseError (/home/guest/dir/HDRI-to-CubeMap/node_modules/webpack/lib/NormalModule.js:432:10)
    at /home/guest/dir/HDRI-to-CubeMap/node_modules/webpack/lib/NormalModule.js:464:5
    at /home/guest/dir/HDRI-to-CubeMap/node_modules/webpack/lib/NormalModule.js:325:12
    at /home/guest/dir/HDRI-to-CubeMap/node_modules/loader-runner/lib/LoaderRunner.js:370:3
    at iterateNormalLoaders (/home/guest/dir/HDRI-to-CubeMap/node_modules/loader-runner/lib/LoaderRunner.js:211:10)
    at Array.<anonymous> (/home/guest/dir/HDRI-to-CubeMap/node_modules/loader-runner/lib/LoaderRunner.js:202:4) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v17.0.1

How to fix it? Thanks for the greatest service!

ProgrammingLife avatar Aug 23 '22 02:08 ProgrammingLife

@ProgrammingLife it should be enough to run npm update, in order to solve this error. (Because the package-lock was generated with an old node version)

thomasw04 avatar Sep 16 '23 10:09 thomasw04