Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

[Bug] Erro no front: Error: error:0308010C:digital envelope routines::unsupported

Ao setar npm start no arquivo front, retorna o seguinte erro. Como devo proceder?

$ npm start

> alurabooks@0.1.0 start
> react-scripts start

i 「wds」: Project is running at http://172.30.128.44/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\public
i 「wds」: 404s will fallback to /
Starting the development server...

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:80:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\webpack\lib\NormalModule.js:471:10)
    at C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\webpack\lib\NormalModule.js:503:5
    at C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\webpack\lib\NormalModule.js:358:12
    at C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\react-scripts\scripts\start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:80:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\webpack\lib\NormalModule.js:417:16)
    at C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\webpack\lib\NormalModule.js:452:10
    at C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\webpack\lib\NormalModule.js:323:13
    at C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\loader-runner\lib\LoaderRunner.js:367:11
    at C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\loader-runner\lib\LoaderRunner.js:233:18
    at context.callback (C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
    at C:\Users\priscila.jlrodolpho\OneDrive\Estudos\curso-react-alurabooks\node_modules\babel-loader\lib\index.js:59:103 {
  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v20.12.0
2 respostas

Eu fiz conforme a solução que ele apresentou, mas aqui não foi a princípio. Agora tentei baixar em outra pasta e deu certo.