每次我运行npm start,我得到以下错误

  • 本文关键字:错误 start 运行 npm reactjs
  • 更新时间 :
  • 英文 :


新的反应,甚至不能让我的项目打开。

npm start
> app@0.1.0 start
> react-scripts start
i 「wds」: Project is running at http://192.168.0.68/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:UsersCarterapppublic
i 「wds」: 404s will fallback to /
Starting the development server...
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at module.exports (C:UsersCarterappnode_moduleswebpacklibutilcreateHash.js:135:53)
at NormalModule._initBuildHash (C:UsersCarterappnode_moduleswebpacklibNormalModule.js:417:16)
at handleParseError (C:UsersCarterappnode_moduleswebpacklibNormalModule.js:471:10)
at C:UsersCarterappnode_moduleswebpacklibNormalModule.js:503:5
at C:UsersCarterappnode_moduleswebpacklibNormalModule.js:358:12
at C:UsersCarterappnode_modulesloader-runnerlibLoaderRunner.js:373:3
at iterateNormalLoaders (C:UsersCarterappnode_modulesloader-runnerlibLoaderRunner.js:214:10)
at iterateNormalLoaders (C:UsersCarterappnode_modulesloader-runnerlibLoaderRunner.js:221:10)
C:UsersCarterappnode_modulesreact-scriptsscriptsstart.js:19
throw err;
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at module.exports (C:UsersCarterappnode_moduleswebpacklibutilcreateHash.js:135:53)
at NormalModule._initBuildHash (C:UsersCarterappnode_moduleswebpacklibNormalModule.js:417:16)
at C:UsersCarterappnode_moduleswebpacklibNormalModule.js:452:10
at C:UsersCarterappnode_moduleswebpacklibNormalModule.js:323:13
at C:UsersCarterappnode_modulesloader-runnerlibLoaderRunner.js:367:11
at C:UsersCarterappnode_modulesloader-runnerlibLoaderRunner.js:233:18
at context.callback (C:UsersCarterappnode_modulesloader-runnerlibLoaderRunner.js:111:13)
at C:UsersCarterappnode_modulesbabel-loaderlibindex.js:59:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

node . js v17.0.1

帮忙吗?

我想我把我的东西弄明白了。我删除了节点,并重新安装在一个级别下,一切都解决了!

相关内容

  • 没有找到相关文章

最新更新