簡體   English   中英

如何解決 React js 中的以下問題

[英]How to fix the following issue in React js

wh How to fix the following issue in React js at 是以下錯誤的解決方案

D:\DDMD\ReactProjects>npx create-react-app pro01 npm ERR:代碼 ERR_OSSL_UNSUPPORTED npm ERR:錯誤:1E08010C:DECODER routines::unsupported

npm ERR:此運行的完整日志可在以下位置找到:npm ERR。 C:\Users\Admin\AppData\Local\npm-cache_logs\2023-01-22T17_17_05_572Z-debug-0.log

版本 C:\Users\Admin>npm -v 8.19.3

C:\Users\Admin>node -v v18.13.0 謝謝

如何解決 React js 中的以下問題

我當前的項目中出現了一些錯誤,要修復它,請將節點版本降級 16+。

您的應用程序或您正在使用的模塊正在嘗試使用 OpenSSL 3.0 默認不再允許的算法或密鑰大小。 命令行選項 --openssl-legacy-provider

首先嘗試將 nodejs 更新到最新的穩定版本。 如果那不起作用,請嘗試此解決方法。

打開package.json並編輯

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

"build": "react-scripts build" by "build": "react-scripts --openssl-legacy-provider build"

來源 - https://roytuts.com/how-to-fix-err_ossl_evp_unsupported-in-react-js-application/

暫無
暫無

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

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