Hi, I’m trying to deploy an express server and the deployment fails and an error appears, how can I fix it?
May 7 01:50:05 AM ==> Running build command ‘yarn’…
May 7 01:50:06 AM yarn install v1.22.5
May 7 01:50:06 AM info No lockfile found.
May 7 01:50:06 AM warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
May 7 01:50:06 AM [1/4] Resolving packages…
May 7 01:50:07 AM [2/4] Fetching packages…
May 7 01:50:10 AM error bson@5.2.0: The engine “node” is incompatible with this module. Expected version “>=14.20.1”. Got “14.17.0”
May 7 01:50:10 AM error Found incompatible module.
May 7 01:50:10 AM info Visit yarn install | Yarn for documentation about this command.
May 7 01:50:10 AM ==> Build failed
May 7 01:50:10 AM ==> Generating container image from build. This may take a few minutes…
Hi,
You’re able to control the version of Node that your service uses by following this doc, https://render.com/docs/node-version
John B
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.