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

npm start fails #66

Closed
stowball opened this issue Feb 14, 2022 · 2 comments
Closed

npm start fails #66

stowball opened this issue Feb 14, 2022 · 2 comments

Comments

@stowball
Copy link

Describe the problem

After following the installation instructions and trying to run the project, I immediately get this error:

/Users/me/javascript-react-chat-app/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:130:10)
    at module.exports (/Users/me/javascript-react-chat-app/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/me/javascript-react-chat-app/node_modules/webpack/lib/NormalModule.js:417:16)
    at /Users/me/javascript-react-chat-app/node_modules/webpack/lib/NormalModule.js:452:10
    at /Users/me/javascript-react-chat-app/node_modules/webpack/lib/NormalModule.js:323:13
    at /Users/me/javascript-react-chat-app/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /Users/me/javascript-react-chat-app/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/Users/me/javascript-react-chat-app/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /Users/me/javascript-react-chat-app/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 v17.0.1

What was the expected behavior?

For the project to run

Reproduction

  1. Clone repo
  2. Install dependencies
  3. Run npm start

Environment

Please provide the following:

  • Node.js v17.01
  • MacOS 12.1 Montery Apple M1 Pro
  • iTerm running in Rosetta mode
@aaliya-shaikh
Copy link
Contributor

aaliya-shaikh commented Feb 14, 2022

Please try to use the latest LTS node version as it is the most stable version of node i.e 16.14.0 .
Node v17 has some bugs
For ref: facebook/create-react-app#11708
And follow the Readme.MD instructions.

@stowball
Copy link
Author

Thanks, that fixed it

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

No branches or pull requests

2 participants