Fred Prat
Fred Prat

Reputation: 43

Node engine version problem when deploying to vercel

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:

picture of 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

Answers (3)

earl-95
earl-95

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

Fabiano Moraes
Fabiano Moraes

Reputation: 9

I had a similar problem and it was solved using

npm install node@latest

Upvotes: -2

jorkby
jorkby

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

  1. Add this file to the main project

.yarnrc

and add any flag to it.

  1. like:

--install.ignore-engines true

Upvotes: 8

Related Questions