Open laszukdawid opened 1 year ago
Hello, For Nuxt 2 you need to use Node 16. I think is because Node 18> uses OpenSSL 3 or something like this I've read
For Node version 17+, add env NODE_OPTIONS=--openssl-legacy-provider
If you want to support both versions, here is one annoying solution (which will make the start take longer by trying both variants): the dev
script in package.json becomes (with cross-env to support Windows+Linux):
"dev": "nuxt || echo Trying to re-run dev script with --openssl-legacy-provider to cover the case if you got error ERR_OSSL_EVP_UNSUPPORTED due to having Node.js version 17+ && cross-env NODE_OPTIONS=--openssl-legacy-provider nuxt"
Version
create-nuxt-app/5.0.0 linux-x64 node-v18.12.1
Steps to reproduce
npx create-nuxt-app
What is Expected?
Template to work.
It is really demotivating experience when starting a new, empty project and be hit with JS ecosystem of things not working. Please specify somewhere which node versions are required to successfully create a new project. The minimum range in Readme would do. If possible, adding verification during installation "wizard" would also help.
What is actually happening?
Error