vscode運行react時報錯
opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ],
library: ‘digital envelope routines’,
reason: ‘unsupported’,
code: ‘ERR_OSSL_EVP_UNSUPPORTED’
什么原因?qū)е?“0308010c:digital envelope routines::unsupported” 的錯誤?
你遇到這個錯誤的可能原因主要有兩個:
你沒有使用 Node JS 的 LTS(長期支持)版本。你可以看到我使用的是 Node 17.0.0,這不是 Node 的 LTS 版本。
你使用的 react-script 的版本小于 5。
這個錯誤也可能發(fā)生,因為你使用的是Node 17。
查看 react-script 的版本
這里是我卸載后重新安裝的,之前是5以下的版本
解決辦法:卸載后重裝 react-scripts
文章來源:http://www.zghlxwxcb.cn/news/detail-599409.html
npm uninstall react-scripts
npm install react-scripts
其他解決方法請參考:https://www.crmeb.com/ask/thread/21959.html文章來源地址http://www.zghlxwxcb.cn/news/detail-599409.html
到了這里,關(guān)于Error: error:0308010C:digital envelope routines::unsupported的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!