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

After running npm start i got this error #144

Open
Itzsaggy opened this issue Feb 4, 2025 · 1 comment
Open

After running npm start i got this error #144

Itzsaggy opened this issue Feb 4, 2025 · 1 comment

Comments

@Itzsaggy
Copy link

Itzsaggy commented Feb 4, 2025

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 (D:\30 Project\Mern_stack_project\practice deploy project\project_chat_application-master\client\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (D:\30 Project\Mern_stack_project\practice deploy project\project_chat_application-master\client\node_modules\webpack\lib\NormalModule.js:412:16)
at D:\30 Project\Mern_stack_project\practice deploy project\project_chat_application-master\client\node_modules\webpack\lib\NormalModule.js:444:10
at D:\30 Project\Mern_stack_project\practice deploy project\project_chat_application-master\client\node_modules\webpack\lib\NormalModule.js:320:13
at D:\30 Project\Mern_stack_project\practice deploy project\project_chat_application-master\client\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at D:\30 Project\Mern_stack_project\practice deploy project\project_chat_application-master\client\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (D:\30 Project\Mern_stack_project\practice deploy project\project_chat_application-master\client\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at D:\30 Project\Mern_stack_project\practice deploy project\project_chat_application-master\client\node_modules\babel-loader\lib\index.js:55:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

@BrightTNut
Copy link

Hi @Itzsaggy try this,
Modify package.json (Permanent Fix)

Modify your package.json to include the OpenSSL legacy provider:
1️⃣ Open package.json

Find the "scripts" section and update it:

"scripts": {
"start": "set NODE_OPTIONS=--openssl-legacy-provider && ng serve",
"build": "set NODE_OPTIONS=--openssl-legacy-provider && ng build"
}

For Mac/Linux, use:

"scripts": {
"start": "NODE_OPTIONS=--openssl-legacy-provider ng serve",
"build": "NODE_OPTIONS=--openssl-legacy-provider ng build"
}

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

2 participants