Open tkhm opened 1 year ago
it is because your node version is too height. if your node version is 1.18, please use 1.16 instead and try if it is ok
it is because your node version is too height. if your node version is 1.18, please use 1.16 instead and try if it is ok
Thanks for your comment but as I shared Stack Overflow link with my comment, we know it is one of the options but not the best. And already v16 support was end in the last year.
In addition, looks still this repo’s document is maintained by the author(at least it was updated in the last year), so then note this for the reader in some ways, it would be very helpful in my opinion. (That’s why I issued this as well)
Sorry for the long delay - I never saw this when you first reported it for some reason but I can definitely update the README with this info.
Summary
If you use Node.js v17 or later, you'll face the
ERR_OSSL_EVP_UNSUPPORTED
when you runnpm run start
. And the workaround is the followingIt would be helpful if the book mention this point in some ways.
Detail
I just started to read the book and faced an issue on chap 1's
Run the server
step.Here is the error message.
And looks it is known issue.
ref https://github.com/webpack/webpack/issues/14532#issuecomment-947012063
And this StackOverflow's answers are well described how we can avoid this issue. (and downgrading to v16 or use legacy provider are not the best solution for the long term though)
node.js - Error message "error:0308010C:digital envelope routines::unsupported" - Stack Overflow https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported