Hi, I attempted to deploy a NuxtJS v3 app via Cloudflare pages.
This is my build settings :
Framework preset : None
Build command : yarn build
Build output directory : .output
I did not set the Framework preset
to NuxtJS since I do not have nuxt generate
command in package.json.
Also, this is my app’s package.json :
{
"private": true,
"scripts": {
"dev": "nuxi dev",
"dev:host": "nuxt dev -h '0' -p 4000",
"build": "nuxi build",
"start": "node .output/server/index.mjs",
"sass": "sass ./assets/scss/styles.scss ./assets/css/main.css -w"
},
"devDependencies": {
"nuxt3": "latest"
},
...
}
However, when building the app, it says error [email protected]: The engine "node" is incompatible with this module. Expected version "^14.16.0 || ^16.11.0 || ^17.0.0". Got "12.18.0"
.
I guess the NodeJS version is still v12.18.0. It would be great if you can upgrade NodeJS version to v16 (LTS) to avoid an error like this.
Thanks.