-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node-gyp does not appear to be available in GH actions anymore #633
Comments
It's not a dependency as I'm pretty sure node-gyp used to be bundled with node.js, we might need to change that |
OK weird - I setup a test repository (https://github.com/johrstrom/test_node_gyp) (just to make sure I'm not insane) and see this message - which I don't see in the code base that I'm getting this error out of.
And since it says that - it works because it automatically installed it. |
It's probably due to thius https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20 |
OH! got it to replicate using version |
Feel free to close this as it doesn't even seem to impact IDK if there's anything to be done on your side - but I'm more of a ruby developer so there could be some node.js nuance I'm missing. |
Environment details
ubuntu-latest
)Issue description
node-gyp
doesn't appear to be available in Github actions anymore. I'm not quite sure when this changed, but our builds started to fail maybe a week ago with this error below (it was flaky for some time, but now reliably fails).Basically trying to install this package failed because
node-gyp
does not appear to be in the PATH.The fix was just to add a step like so
This issue is half a heads up as others may encounter the same, the other half wondering why it's not a dependency? I would guess there's an assumption that the nodejs you've installed through your system package manager also installed this module?
In any case - feel free to close as it really is just a informational ticket to let folks know should they run into the same issue. (I could setup a simple CI to demonstrate the same and can do so if you like/need).
The text was updated successfully, but these errors were encountered: