Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Local Client Fails on Node 18+ #8

Open
un-focused opened this issue Jul 26, 2023 · 3 comments
Open

Start Local Client Fails on Node 18+ #8

un-focused opened this issue Jul 26, 2023 · 3 comments

Comments

@un-focused
Copy link

yarn start-local-client
Starting the development server...

/Users/unfocused/Documents/Git Folders/Projects/zkdocs/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (/Users/unfocused/Documents/Git Folders/Projects/zkdocs/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/unfocused/Documents/Git Folders/Projects/zkdocs/node_modules/webpack/lib/NormalModule.js:417:16)
    at /Users/unfocused/Documents/Git Folders/Projects/zkdocs/node_modules/webpack/lib/NormalModule.js:452:10
    at /Users/unfocused/Documents/Git Folders/Projects/zkdocs/node_modules/webpack/lib/NormalModule.js:323:13
    at /Users/unfocused/Documents/Git Folders/Projects/zkdocs/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /Users/unfocused/Documents/Git Folders/Projects/zkdocs/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/Users/unfocused/Documents/Git Folders/Projects/zkdocs/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /Users/unfocused/Documents/Git Folders/Projects/zkdocs/node_modules/react-scripts/node_modules/babel-loader/lib/index.js:59:103 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.1.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@un-focused
Copy link
Author

The "fix" is to enable the legacy provider: export NODE_OPTIONS=--openssl-legacy-provider

@un-focused
Copy link
Author

From https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported

In Node.js v17, the Node.js developers closed a security hole in the SSL provider. This fix was a breaking change that corresponded with similar breaking changes in the SSL packages in NPM. When you attempt to use SSL in Node.js v17 or later without also upgrading those SSL packages in your package.json, then you will see this error.

We need to upgrade our dependencies to newer versions of the SSL packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant