Rumah  >  Soal Jawab  >  teks badan

"Mesej Ralat Tidak Disokong: ralat:0308010C:rutin sampul surat digital" ditulis semula sebagai: "Mesej Ralat Tidak Disokong: ralat:0308010C:rutin sampul surat digital"

<p>我创建了默认的IntelliJ IDEA React项目,得到了以下错误:</p> <pre class="brush:none;toolbar:false;">错误:error:0308010C:数字信封例程::不支持 di Hash baharu (node:internal/crypto/hash:67:19) di Object.createHash (node:crypto:130:10) di module.exports (/Users/user/Programming Documents/WebServer/untitled/node_modules/webpack/lib/util/createHash.js:135:53) di NormalModule._initBuildHash (/Users/user/Programming Documents/WebServer/untitled/node_modules/webpack/lib/NormalModule.js:417:16) di handleParseError (/Users/user/Programming Documents/WebServer/untitled/node_modules/webpack/lib/NormalModule.js:471:10) di /Users/user/Programming Documents/WebServer/untitled/node_modules/webpack/lib/NormalModule.js:503:5 di /Users/user/Programming Documents/WebServer/untitled/node_modules/webpack/lib/NormalModule.js:358:12 di /Users/user/Programming Documents/WebServer/untitled/node_modules/loader-runner/lib/LoaderRunner.js:373:3 di iterateNormalLoaders (/Users/user/Programming Documents/WebServer/untitled/node_modules/loader-runner/lib/LoaderRunner.js:214:10) di 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 membuang err; ^ </pra> <p>这似乎是一个最近的问题 - <em>webpack在4天前遇到了这个问题,仍在处理&emlt>g/中;
P粉176151589P粉176151589455 hari yang lalu478

membalas semua(2)saya akan balas

  • P粉189606269

    P粉1896062692023-08-14 16:30:50

    Anda boleh mencuba salah satu kaedah berikut:

    1 Turun taraf kepada Node.js v16.

    2. Dayakan penyedia OpenSSL lama.

    Pada sistem seperti Unix (Linux, macOS, Git bash, dll.):

    export NODE_OPTIONS=--openssl-legacy-provider
    

    Pada Windows Command Prompt:

    set NODE_OPTIONS=--openssl-legacy-provider

    Pada PowerShell:

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

    Pautan rujukan

    balas
    0
  • P粉393030917

    P粉3930309172023-08-14 13:32:43

    Dalam fail package.json anda: ubah suai baris kod ini

    "start": "react-scripts start"
    

    ditukar kepada

    "start": "react-scripts --openssl-legacy-provider start"
    

    balas
    0
  • Batalbalas