无法连接到本地主机

问题描述 投票:0回答:1
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 (E:\react code\my first app\newsapp\node_modules\webpack\lib\util\createHash.js:90:53)
    at NormalModule._initBuildHash (E:\react code\my first app\newsapp\node_modules\webpack\lib\NormalModule.js:401:16)
    at handleParseError (E:\react code\my first app\newsapp\node_modules\webpack\lib\NormalModule.js:449:10)
    at E:\react code\my first app\newsapp\node_modules\webpack\lib\NormalModule.js:481:5        
    at E:\react code\my first app\newsapp\node_modules\webpack\lib\NormalModule.js:342:12       
    at E:\react code\my first app\newsapp\node_modules\loader-runner\lib\LoaderRunner.js:373:3  
    at iterateNormalLoaders (E:\react code\my first app\newsapp\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (E:\react code\my first app\newsapp\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
    at E:\react code\my first app\newsapp\node_modules\loader-runner\lib\LoaderRunner.js:236:3  
    at runSyncOrAsync (E:\react code\my first app\newsapp\node_modules\loader-runner\lib\LoaderRunner.js:130:11)
    at iterateNormalLoaders (E:\react code\my first app\newsapp\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
    at Array.<anonymous> (E:\react code\my first app\newsapp\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
    at Storage.finished (E:\react code\my first app\newsapp\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
    at E:\react code\my first app\newsapp\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
E:\react code\my first app\newsapp\node_modules\react-scripts\scripts\start.js:19
  throw err;
  ^

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 (E:\react code\my first 
app\newsapp\node_modules\webpack\lib\util\createHash.js:90:53)
    at NormalModule._initBuildHash (E:\react code\my first app\newsapp\node_modules\webpack\lib\NormalModule.js:401:16)
    at E:\react code\my first app\newsapp\node_modules\webpack\lib\NormalModule.js:433:10       
    at E:\react code\my first app\newsapp\node_modules\webpack\lib\NormalModule.js:308:13       
    at E:\react code\my first app\newsapp\node_modules\loader-runner\lib\LoaderRunner.js:367:11 
    at E:\react code\my first app\newsapp\node_modules\loader-runner\lib\LoaderRunner.js:233:18 
    at context.callback (E:\react code\my first app\newsapp\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
    at E:\react code\my first app\newsapp\node_modules\babel-loader\lib\index.js:51:103 {       
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],      
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

一切都很完美,但是当我安装

react-router
并运行
npm start
时,它没有与本地服务器建立连接。

react-router-dom npm-start
1个回答
0
投票

我遇到了同样的错误,我也想要解决方案。

© www.soinside.com 2019 - 2024. All rights reserved.