11
   ╭───────────────────────────────────────╮
   │                                       │
   │   Nuxt @ v2.15.8                      │
   │                                       │
   │   ▸ Environment: development          │
   │   ▸ Rendering:   server-side          │
   │   ▸ Target:      server               │
   │                                       │
   │   Listening: http://localhost:3000/   │
   │                                       │
   ╰───────────────────────────────────────╯

i Preparing project for development                                           17:35:26
i Initial build may take a while                                              17:35:26
i Discovered Components: .nuxt/components/readme.md                           17:35:26
√ Builder initialized                                                         17:35:26
√ Nuxt files generated                                                        17:35:26

* Client █████████████████████████ building (10%) 1/2 modules 1 active
 node_modules\webpack-hot-middleware\client.js

* Server █████████████████████████ building (10%) 1/1 modules 0 active


node:internal/crypto/hash:71
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

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 (F:\1.A software Company careers test\CyberElysium\test\todo-nuxt\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (F:\1.A software Company careers test\CyberElysium\test\todo-nuxt\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (F:\1.A software Company careers test\CyberElysium\test\todo-nuxt\node_modules\webpack\lib\NormalModule.js:471:10)
    at F:\1.A software Company careers test\CyberElysium\test\todo-nuxt\node_modules\webpack\lib\NormalModule.js:503:5
    at F:\1.A software Company careers test\CyberElysium\test\todo-nuxt\node_modules\webpack\lib\NormalModule.js:358:12
    at F:\1.A software Company careers test\CyberElysium\test\todo-nuxt\node_modules\web    at iterateNormalLoaders (F:\1.A software Company careers test\CyberElysium\test\todo-nuxt\node_modules\webpack\node_modules\loader-runner\lib\LoaderRunner.js:214:10)       
    at Array.<anonymous> (F:\1.A software Company careers test\CyberElysium\test\todo-nuxt\node_modules\webpack\node_modules\loader-runner\lib\LoaderRunner.js:205:4) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' 
],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
1
  • Hi, do you have a minimal reproducible example, public github repo or any additional context? Commented Jul 20, 2022 at 14:09

3 Answers 3

29

I faced the same issue when running an Vue+Nuxt application and was able to get past it by using the command

export NODE_OPTIONS=--openssl-legacy-provider

Before adding the command: enter image description here

After running the command enter image description here

Sign up to request clarification or add additional context in comments.

Comments

4

I had the same problem when trying to run an Angular application using Ionic. I downgraded the Node.js version I was using to v16.13.0 and so far it's working for me.

If you are using NVM (Node Version Manager), perform the installation using the commands:

  1. nvm install 16.13.0
  2. nvm use 16.13.0

2 Comments

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
Answer looks very clear to me. Following it as written solved my problem
1

You need to switch to lower Node version try to use node v14.

1 Comment

v14 is dead. Use either 18 or 16.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.