-
Notifications
You must be signed in to change notification settings - Fork 62
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
Comments
go to your package.json and change "start": "react-scripts start" to "start": "react-scripts --openssl-legacy-provider start" |
Looks like some dependencies are still legacy? |
npm run start
node:internal/modules/cjs/loader:596 Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /home/cryso/Documents/Projects/mamaji/Hostel-Management/frontend/node_modules/postcss-safe-parser/node_modules/postcss/package.json Node.js v21.7.1 |
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
The text was updated successfully, but these errors were encountered: