react-mycroft-gui icon indicating copy to clipboard operation
react-mycroft-gui copied to clipboard

"npm start" fails with ERR_OSSL_EVP_UNSUPPORTED

Open goldyfruit opened this issue 2 years ago • 1 comments

When trying to start the application, I got the trace below:

╰─λ npm start                                                                                                                                                                                                                                                                                                                                                                                                                                                           0 (10.722s) < 18:04:52

> [email protected] start
> webpack-dev-server --hot --open

(node:2029120) [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:3000/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/goldyfruit/Developments/OpenVoiceOS/react-mycroft-gui
node:internal/crypto/hash:69
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:69:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (/home/goldyfruit/Developments/OpenVoiceOS/react-mycroft-gui/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/goldyfruit/Developments/OpenVoiceOS/react-mycroft-gui/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/home/goldyfruit/Developments/OpenVoiceOS/react-mycroft-gui/node_modules/webpack/lib/NormalModule.js:471:10)
    at /home/goldyfruit/Developments/OpenVoiceOS/react-mycroft-gui/node_modules/webpack/lib/NormalModule.js:503:5
    at /home/goldyfruit/Developments/OpenVoiceOS/react-mycroft-gui/node_modules/webpack/lib/NormalModule.js:358:12
    at /home/goldyfruit/Developments/OpenVoiceOS/react-mycroft-gui/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/home/goldyfruit/Developments/OpenVoiceOS/react-mycroft-gui/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array.<anonymous> (/home/goldyfruit/Developments/OpenVoiceOS/react-mycroft-gui/node_modules/loader-runner/lib/LoaderRunner.js:205:4) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.17.1

goldyfruit avatar Aug 25 '23 22:08 goldyfruit

The workaround is to export NODE_OPTIONS=--openssl-legacy-provider then npm start.

goldyfruit avatar Aug 25 '23 22:08 goldyfruit