Deployment fails with node v18.18.0
trflynn89 opened this issue · 1 comments
See 3c5e0ab
Node v18.18.0 includes an update to npm 9.7.2:
nodejs/node@4a6177d
That update removes the node-gyp
executable. Without it, we get the following error when deploying the Heroku app:
Failed to auto-install node-gyp. Please run "yarn global add node-gyp" manually.
I'm not sure how do to the recommended step because this runs remotely in Heroku's servers (i.e. I don't think adding it as a step in the GitHub workflow will suffice).
For now, this has been worked around by limiting node to v18.17.1.
There is a very ominous note here: https://devcenter.heroku.com/articles/cli-style-guide#native-dependencies
Native dependencies
The Heroku CLI does not support native dependencies. They will break when we update the node version. Also, native dependencies typically require the use of node-gyp, which requires Python, and generally is likely to have problems compiling on all user environments, especially Windows.
I'm not sure how this can be true, as... like the entire ecosystem depends on this stuff.