Nodejs 20 not set in railway
I have set in my package.json:
"engines" : {
"node": "20"
}
and the I have set the NIXPACKS_NODE_VERSION=20 in my environment variables, but still my build fails with:
The engine "node" is incompatible with this module. Expected version "20". Got "18.18.2"
27 Replies
Project ID:
8bd8efef-3533-45db-9b74-4e2772fc4d44
8bd8efef-3533-45db-9b74-4e2772fc4d44
maybe you have 18 in an .nvmrc file?
i don't have a .nvmrc file in my project
gotcha, can you send a screenshot of the build table at the top of the build logs?
Thank you for helping. This?
well yes but can i see the actual logs please, the build table at the of the log lines
top of the logs please
can you share your repo, there is some strange stuff going on with that table
can I share it with your github acc. ?
delete that file, you theoretically don't need it
okay, I will try to push again
now the table cahnged in the top:
thank you it managed to build now
awesome, do you use npm or yarn locally?
yarn
how can I make it use yarn?
do you have a yarn lock file?
yes
do you have a package lock file?
yes
then delete the package lock file, that's an npm thing
yes
once deleted the build on railway should use yarn
okay, will try, thank you