node.jsnpmyarnpkgnode-gyp

yarn install fails because node-gyp is looking for dated node version header


After upgrading to Node 18.12.0 (on macos Ventura 13.2.1) , I ran into issues with a failed yarn install, with the following error:

enter image description here

I have attempted:


Solution

  • This was right in my face the entire time: it never occurred to me to check the Yarn config, which is where the outdated headers were living.