Error: node@4.x builder failed to install dependencies through yarn

Juan, the problem happened when your package run on old node version, but there is a solution for that.

You will put in package.json the property called “resolutions”, ex:

“resolutions”: {
“expect”: “25.5.0”
}

But Nicholas, why do you put the 25.5.0?

After you put the code on package.json, you need to run “yarn” to indexed on yarn.lock. Then the terminal will shows a log similar to this:

warning package.json: No license field
warning No license field
[1/4] 🔍 Resolving packages...
warning Resolution field "expect@25.5.0" is incompatible with requested version "expect@^29.0.0"

The expect@25.5.0 is the solution, then you put on the resolutions.

“resolutions”: {
“expect”: “25.5.0”
}

After this, you run the command VTEX setup and VTEX link

The instruction is:

Terminal shows the error log? Add resolutions on package.json with “package”: “25.5.0”

Run yarn, the same will shows the log with exact version to associate on package.json.

After this, you run the VTEX setup and VTEX link