'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



Solution 1:[1]

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

Solution 2:[2]

I had a similar problem and it was solved using

npm install node@latest

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jorkby
Solution 2 Fabiano Moraes