The rewritten title is: Error code "0308010C: Numeric envelope routine not supported"
P粉613735289
P粉613735289 2023-08-22 13:47:23
0
2
449

我创建了默认的IntelliJ IDEA React项目,出现了以下错误:

错误:error:0308010C:数字信封例程::不支持 at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at module.exports (/Users/user/Programming Documents/WebServer/untitled/node_modules/webpack/lib/util/createHash.js:135:53) at NormalModule._initBuildHash (/Users/user/Programming Documents/WebServer/untitled/node_modules/webpack/lib/NormalModule.js:417:16) at handleParseError (/Users/user/Programming Documents/WebServer/untitled/node_modules/webpack/lib/NormalModule.js:471:10) at /Users/user/Programming Documents/WebServer/untitled/node_modules/webpack/lib/NormalModule.js:503:5 at /Users/user/Programming Documents/WebServer/untitled/node_modules/webpack/lib/NormalModule.js:358:12 at /Users/user/Programming Documents/WebServer/untitled/node_modules/loader-runner/lib/LoaderRunner.js:373:3 at iterateNormalLoaders (/Users/user/Programming Documents/WebServer/untitled/node_modules/loader-runner/lib/LoaderRunner.js:214:10) at iterateNormalLoaders (/Users/user/Programming Documents/WebServer/untitled/node_modules/loader-runner/lib/LoaderRunner.js:221:10) /Users/user/Programming Documents/WebServer/untitled/node_modules/react-scripts/scripts/start.js:19 throw err; ^ 

这似乎是一个最近的问题 - webpack在4天前遇到了这个问题,仍在解决中

P粉613735289
P粉613735289

reply all (2)
P粉043432210

You can try one of the following methods:

1. Downgrade to Node.js v16.

2. Enable legacy OpenSSL provider.

For Unix-like systems (Linux, macOS, Git bash, etc.):

export NODE_OPTIONS=--openssl-legacy-provider

For Windows command prompt:

set NODE_OPTIONS=--openssl-legacy-provider

For PowerShell:

$env:NODE_OPTIONS = "--openssl-legacy-provider"

Reference link

    P粉046387133

    In your package.json file: change this line to

    "start": "react-scripts --openssl-legacy-provider start"
      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!