簡體   English   中英

React 編譯錯誤:opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],

[英]React compilation error: opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],

opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',

reason: 'unsupported',

code: 'ERR_OSSL_EVP_UNSUPPORTED'

我更新了我的節點版本,然后我獲取了這種類型的錯誤。

如果您已將 Node 版本更新到 17+,則還需要將您的 react-scripts 升級到版本 5 或更高版本。 這里

您可以按照Create React App站點中的說明運行npm install react-scripts@latest來執行此操作。

create-react-library

如果您收到以下錯誤:

opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
Compiled successfully!
example folder -> package.json -> 
"start": "react-scripts --openssl-legacy-provider start", 
"build": "react-scripts --openssl-legacy-provider build", 
"test": "react-scripts test", 
"eject": "react-scripts eject"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM