macos
Error: error:0308010C:digital envelope routines::unsupported
...
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
尝试过以下方法都解决不了
"scripts": {
"start": "export SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",
"build": "export SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build"
}
或者
"scripts": {
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build",
}
build 后报错,npm start 正常,也尝试过把 node 降级到 16.13.0, brew unlink 和删除高版本,build 后看 docker logs 还是一样明示 Node.js v17.9.0
请问如果要高版本和低版本正确的应该怎么处理? 谢谢!