-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Yarn install fails when trying to install mongodb-memory-server on a Github hosted runner #803
Comments
is this the exact error and do you have a stacktrace available? because there is no usage of
if the problem is in also, what changed between those attempts? did a |
Unfortunately there is no more logging in the runner, even with the applied ENV variables. Also nothing has changed between the deployments. The frustrating thing is that it can succeed / fail on subsequent trials. I have the feeling it has something to do with caching inside the runners, but I'm not sure. |
then i am sorry, but i cannot help further with that, the only thing i could suggest it to clear all cache in a all runners & workflows, if that is even possible |
After searching for a while I have found more details, and this also made it clear what happened. Leaving my findings here in case others run into the same issue.
There has been a breaking change in NPM which caused this issue when using yarn classic. The node-gyp package is removed from the global bin, so yarn tries to install node-gyp while running |
thanks for reporting back with a cause and fix (just a note, to my knowledge MMS (and dependencies) dont use node-gyp, unless implicitly?) |
Versions
package: mongo-memory-server
What is your question?
I'm running into an issue with installing this dependency on a Github hosted runner. When it's installing the dependencies using
yarn install
everything looks normal, but suddenly it exits with an exit code 1, throwing this error.I have the feeling this is thrown by the post-install script, but I'm not 100%. Also tried to get more debug logs, but that didn't result into more details, also not with the
debug
flag. Also trying to disable the post-install script using thedisablePostinstall
didn't solve the issue.But the weirdest thing is, sometimes it works, sometimes it doesn't. I.e. on attempt #1 it failed, on attempt #2 it succeeded and on attempt #3 it failed again. When it succeeds, above error is not shown. I'm using this version for about a month, and until last Friday all worked as expected.
Hopefully someone has experienced this before and can point me into the right direction.
The text was updated successfully, but these errors were encountered: