running the app
Closed this issue · 4 comments
it is not running can you help me, please? I am just a beginner. I have tried npm install and the npm start but it is not working
What's the error you're getting?
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\webpack\lib\NormalModule.js:471:10)
at C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\webpack\lib\NormalModule.js:503:5
at C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\webpack\lib\NormalModule.js:358:12
at C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at iterateNormalLoaders (C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\react-scripts\scripts\start.js:19
throw err;
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\webpack\lib\NormalModule.js:417:16)
at C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\webpack\lib\NormalModule.js:452:10
at C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\webpack\lib\NormalModule.js:323:13
at C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at C:\Users\amoms\Downloads\Mini-Ipod-App-ReactJS-master\Mini-Ipod-App-ReactJS-master\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'
}
This is what I am getting
Hi. Sorry for replying late. I was down with a fever.
See I'm not getting any error while running the app.
But here's what you can do & let me know if it works or not:
The error message you provided indicates an issue related to cryptographic operations in your React app. It appears that there is an unsupported or incompatible cryptographic algorithm being used.
To troubleshoot this issue, you can try the following steps:
-
Update Node.js and npm: Make sure you have the latest versions of Node.js and npm installed on your system. You can check your current versions by running the following commands in your terminal:
node -v npm -v
If your versions are outdated, update Node.js and npm to their latest versions.
-
Clear the npm cache: Run the following command to clear the npm cache:
npm cache clean --force
-
Update dependencies: Update the dependencies used in your React app by running the following command in your project directory:
npm update
-
Remove the
node_modules
folder and reinstall dependencies: Delete thenode_modules
folder in your project directory and then reinstall the dependencies by running:npm install
-
Run the suggested command to update Browserslist: As mentioned in the error message, run the following command to update Browserslist:
npx browserslist@latest --update-db
After performing these steps, try running your React app again and see if the error persists.
NOTE: Both Nodejs & NPM must be updated.