Error: error:0308010c:digital envelope routines::unsupported [Node Error Solved]
试了百度来的几个方法, 都不好用.
又试了这个哥们儿的方法, 好用.
原因:
if you are getting the "0308010c:digital envelope routines::unsupported" error, then it could happen you’re not using an LTS version of Node JS, or you’re using react-scripts version <5(我的原因就是这个).
解决:
-
Uninstall and reinstall react-scripts
- open the terminal and run
npm uninstall react-scripts
- run
npm install react-scripts
- open the terminal and run