Reputation: 43
So I had a nextjs project deployed to vercel, and today I committed a minor change that was deleting some console log statements and it wouldn't deploy anymore. It is throwing this error:
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=16.0.0". Got "14.19.0" error Found incompatible module.
I think it is because that ipfs-unixfs file needs node version 16+ but vercel only works with 14.x. What can I do to fix it?. Node only handles version 12.x and 14.x
Upvotes: 4
Views: 11241
Reputation: 173
You need to update the Node version that Vercel is using for your project's build step. This can be easily done in the project settings. As described in the Vercel Changelog, go to your project on your Vercel dashboard, click Settings, and scroll down a bit until you find the Node.js Version dropdown option. Select 16.x and redeploy your latest deployment. This worked for me.
Upvotes: 5
Reputation: 9
I had a similar problem and it was solved using
npm install node@latest
Upvotes: -2
Reputation: 96
Currently, Vercel only supports node.js 12.x and 14.x - try using this treat suggestion: https://github.com/vercel/vercel/issues/1078#issuecomment-433377209
.yarnrc
and add any flag to it.
--install.ignore-engines true
Upvotes: 8