-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
nvm breaks detox build on MacOS #2623
Comments
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the Feel free to post your Stack Overflow question here for more visibility. We'll take a look at it. For issues with Expo apps, it is most likely not an issue with Detox itself, but with the Expo runtime or with incorrect Detox setup. For support on how to use Detox with Expo, you should contact the Expo team or the Expo community. For more information on bots in this repository, read this discussion. |
It is unrealistic to investigate this issue provided the feedback above.
and run it. Does the result differ? |
Detox works fine with a normal nodejs install via .deb from the website. I am trying to wrap it in a separate node script as you said. Will give feedback when the build is finished/failed |
Thanks. Putting it in a separate node script and running it with |
But this works in a npm script |
This is not related to Detox at all. |
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the Feel free to post your Stack Overflow question here for more visibility. We'll take a look at it. For issues with Expo apps, it is most likely not an issue with Detox itself, but with the Expo runtime or with incorrect Detox setup. For support on how to use Detox with Expo, you should contact the Expo team or the Expo community. For more information on bots in this repository, read this discussion. |
This issue just happens with detox build. I do not have any issues with other npm scripts or libraries. That's why I thought of a detox issue in the first place. I was thinking, that it is quite unlikely that any of you are using nvm and haven't had any issues regarding this. Thanks for clearing things up. |
We are actually using NVM in some of our CIs and, as far as I know, that hasn't changed. We also had developers using NVM on their development machines. |
Looks like this was still an issue by npm 2 days ago. It used to set the PREFIX env variable for no reason. |
When using nvm to manage node versions on MacOS(11.1), detox build fails with the following error
Ubuntu works fine with nvm.
Also other builds that need node or npm work fine, it is just happening with detox.
Is detox setting the PREFIX environment variable somewhere? Is there any way of working around this problem?
The text was updated successfully, but these errors were encountered: