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

this issue is coming when i am trying to run the code #42

Open
TheTurboSlayer opened this issue Apr 6, 2024 · 3 comments
Open

this issue is coming when i am trying to run the code #42

TheTurboSlayer opened this issue Apr 6, 2024 · 3 comments

Comments

@TheTurboSlayer
Copy link

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:\Desktop\TextUtils-React\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (D:\Desktop\TextUtils-React\node_modules\webpack\lib\NormalModule.js:417:16)
at D:\Desktop\TextUtils-React\node_modules\webpack\lib\NormalModule.js:452:10
at D:\Desktop\TextUtils-React\node_modules\webpack\lib\NormalModule.js:323:13
at D:\Desktop\TextUtils-React\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at D:\Desktop\TextUtils-React\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (D:\Desktop\TextUtils-React\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at D:\Desktop\TextUtils-React\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'
}

@ShahMuhaymin
Copy link

facing same error

@TheTurboSlayer
Copy link
Author

TheTurboSlayer commented Apr 7, 2024 via email

@susmitasanti
Copy link

To resolve the OpenSSL issue with Node.js, please follow these steps:

For Windows Command Prompt:

  1. Open Command Prompt and navigate to your project directory.

  2. Set the NODE_OPTIONS environment variable:

    set NODE_OPTIONS=--openssl-legacy-provider
    

For Linux, macOS Command Prompt:

  1. Open Command Prompt and navigate to your project directory.

  2. Set the NODE_OPTIONS environment variable:

    export NODE_OPTIONS=--openssl-legacy-provider
    

Start your app

  npm run start

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