Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

671
Views
Obteniendo el error 'rutinas de sobres digitales', motivo: 'no compatible', código: 'ERR_OSSL_EVP_UNSUPPORTED'

Recibí este error al aprender Next.js, usando npx create-next-app acuerdo con la documentación del sitio aquí https://nextjs.org/docs/api-reference/create-next-app . Todo funciona hasta que inicio el servidor,

Pila de errores:

 $ npm run dev > devto-clone@0.1.0 dev > next dev ready - started server on 0.0.0.0:3000, url: http://localhost:3000 info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5 Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at BulkUpdateDecorator.hashFactory (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:138971:18) at BulkUpdateDecorator.update (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:138872:50) at OriginalSource.updateHash (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack-sources3\index.js:1:10264) at NormalModule._initBuildHash (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68468:17) at handleParseResult (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68534:10) at C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68628:4 at processResult (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68343:11) at C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68407:5 Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at BulkUpdateDecorator.hashFactory (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:138971:18) at BulkUpdateDecorator.update (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:138872:50) at OriginalSource.updateHash (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack-sources3\index.js:1:10264) at NormalModule._initBuildHash (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68468:17) at handleParseResult (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68534:10) at C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68628:4 at processResult (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68343:11) at C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68407:5 node:internal/crypto/hash:67 this[kHandle] = new _Hash(algorithm, xofLen); ^ Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at BulkUpdateDecorator.hashFactory (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:138971:18) at BulkUpdateDecorator.update (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:138872:50) at OriginalSource.updateHash (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack-sources3\index.js:1:10264) at NormalModule._initBuildHash (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68468:17) at handleParseResult (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68534:10) at C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68628:4 at processResult (C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68343:11) at C:\xampp\htdocs\devto-clone\node_modules\next\dist\compiled\webpack\bundle5.js:68407:5 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' } Node.js v17.0.1

paquete.json:

 { "name": "devto-clone", "version": "0.1.0", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { "next": "11.1.2", "react": "17.0.2", "react-dom": "17.0.2" }, "devDependencies": { "eslint": "7.32.0", "eslint-config-next": "11.1.2" } }
over 4 years ago · Santiago Trujillo
5 answers
Answer question

0

Encontré esta solución https://github.com/webpack/webpack/issues/14532

  1. si usa bash, simplemente ejecute NODE_OPTIONS=--openssl-legacy-provider antes de cualquier comando

  2. agregando NODE_OPTIONS=--openssl-legacy-provider a package.json

     "scripts": { "start": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts start", "build": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build" },

Editar

En mi caso, estoy usando la versión Nodejs 17.0.1 y estoy causando este error.

En primer lugar, estoy usando este comando export NODE_OPTIONS=--openssl-legacy-provider antes de cualquier comando en GitBash Windows para solucionar este problema.

Pero creo que no es una forma eficiente, así que lo que hago es:

  1. Desinstalar Nodejs 17.0.1
  2. Vuelva a instalarlo Nodejs versión 16.13.0
  3. Estoy enfrentando otro error cuando inicio el servidor usando "servicio de hilo" (otro de mis proyectos de Vuejs que salen), no recuerdo qué es esto, pero después de ejecutar "hilo" y "servicio de hilo", todo funciona ahora como acepto
over 4 years ago · Santiago Trujillo Report

0

Acabo de recibir este error, parece que está utilizando la versión 17+ de Node. Todavía no es compatible con algunas cosas del paquete web.

Intente usar la versión LTS en su lugar, actualmente en 16.13.0.

over 4 years ago · Santiago Trujillo Report

0

Esto ocurrió con una compilación en una imagen acoplable cuando estaba usando la última versión de nodo 17.4.0.

Pude arreglarlo cambiándolo a la imagen de Node v.14.

over 4 years ago · Santiago Trujillo Report

0

Para MacOS y react-native:

 "scripts": { "start": "NODE_OPTIONS=--openssl-legacy-provider react-native start", }
over 4 years ago · Santiago Trujillo Report

0

Si está utilizando nvm, reaccione de forma nativa y enfrente este problema. Pruebe la versión predeterminada de nvm 16.13

 nvm alias default v16.13.0

Esto me ha ayudado a eliminar el error durante el desarrollo. Luego tuve un error en el modo de lanzamiento al crear el paquete. Descubrí el problema, estaba usando nvm con el nodo 17 como predeterminado. Después de hacer,

 nvm uninstall v17

el error en la liberación se escapó.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!