我有一个react-native 网络应用程序.在我做完expo 之后.我 Select W-Web.然后我得到了这个错误:
] 10%Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:68:19)
我使用的是node.js版本v20.10.0.
我的package.json文件看起来像:
"scripts": {
"start": "expo start, react-app-rewired start --openssl-legacy-provider ",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject",
"lint": "eslint . --ext .js",
"postinstall": "patch-package",
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build",
"start-webpack": "webpack-dev-server --mode production --open"
},
问题:如何解决错误:错误:0308010C:数字信封 routine ::不支持