facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.74k stars 26.86k forks source link

I am getting error, please help me out #11741

Open kalpana123-1 opened 2 years ago

kalpana123-1 commented 2 years ago

Starting the development server...

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/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/webpack/lib/util/createHash.js:135:53) at NormalModule._initBuildHash (/home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/webpack/lib/NormalModule.js:417:16) at handleParseError (/home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/webpack/lib/NormalModule.js:471:10) at /home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/webpack/lib/NormalModule.js:503:5 at /home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/webpack/lib/NormalModule.js:358:12 at /home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/loader-runner/lib/LoaderRunner.js:373:3 at iterateNormalLoaders (/home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/loader-runner/lib/LoaderRunner.js:214:10) at iterateNormalLoaders (/home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/loader-runner/lib/LoaderRunner.js:221:10) /home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-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 (/home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/webpack/lib/util/createHash.js:135:53) at NormalModule._initBuildHash (/home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/webpack/lib/NormalModule.js:417:16) at /home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/webpack/lib/NormalModule.js:452:10 at /home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/webpack/lib/NormalModule.js:323:13 at /home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/loader-runner/lib/LoaderRunner.js:367:11 at /home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/loader-runner/lib/LoaderRunner.js:233:18 at context.callback (/home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-app/node_modules/loader-runner/lib/LoaderRunner.js:111:13) at /home/jtd/Documents/kalpana_fw11_174/unit-5/sprint-4/day-3/assignments/my-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.2.0

aladdin-add commented 2 years ago

Yes, it's a known issue running CRA in Node.js v17. please downgrade to Node.js v16 and retry.

kalpana123-1 commented 2 years ago

Yeah it worked for me, Thank you