rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k stars 210 forks source link

Fix npm run start ERR_OSSL_EVP_UNSUPPORTED #317

Open leagris opened 2 months ago

leagris commented 2 months ago

On newer NodeJs versions, the environment variable NODE_OPTIONS=--openssl-legacy-provider is required to be able to execute npm run start.

{
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}