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

error coming while running npm start #5

Open
Shivendra12131 opened this issue Nov 8, 2023 · 2 comments
Open

error coming while running npm start #5

Shivendra12131 opened this issue Nov 8, 2023 · 2 comments

Comments

@Shivendra12131
Copy link

Starting the development server...

/Users/shivendra/Desktop/new_project/Hostel-Management/frontend/node_modules/react-scripts/scripts/start.js:19
throw err;
^

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:68:19)
at Object.createHash (node:crypto:138:10)
at module.exports (/Users/shivendra/Desktop/new_project/Hostel-Management/frontend/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/Users/shivendra/Desktop/new_project/Hostel-Management/frontend/node_modules/webpack/lib/NormalModule.js:417:16)
at /Users/shivendra/Desktop/new_project/Hostel-Management/frontend/node_modules/webpack/lib/NormalModule.js:452:10
at /Users/shivendra/Desktop/new_project/Hostel-Management/frontend/node_modules/webpack/lib/NormalModule.js:323:13
at /Users/shivendra/Desktop/new_project/Hostel-Management/frontend/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /Users/shivendra/Desktop/new_project/Hostel-Management/frontend/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/Users/shivendra/Desktop/new_project/Hostel-Management/frontend/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /Users/shivendra/Desktop/new_project/Hostel-Management/frontend/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 v21.1.0
shivendra@Shivendras-MacBook-Air frontend % node server.js
node:internal/modules/cjs/loader:1147
throw err;
^

Error: Cannot find module '/Users/shivendra/Desktop/new_project/Hostel-Management/frontend/server.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v21.1.0

@Abhigna-D
Copy link

go to your package.json and change "start": "react-scripts start" to "start": "react-scripts --openssl-legacy-provider start"

@anasaijaz
Copy link

Looks like some dependencies are still legacy?

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

3 participants