-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Lazy: Take precedence over preinstalled node #15
Comments
Hmmn, it would appear that the Could you start a new session and let me know what |
I just installed yarn through brew and I get:
So the brew
If I |
Since you can reproduce, I don't need to run |
Yep, I've done it haha |
You can also disable So you need to choose:
To clarify, the issue appears to be caused by brew node, I'm not quite sure how it's overriding the lazy load function. If I can figure out I may be able to get them to work together but I would suggest using one of the two options above :) |
Found the conflict! Working on a fix... |
So it's kinda my fault? Cool! 😁 But yeah, adding |
Haha no it's not your fault, you just seem to be really good at finding edge cases in my code 😆 Should have a fix shortly... |
I've updated the fix from the other issue to specifically check for aliases rather than any binary/alias/function. That seems to have done the job. |
@SimenB Let me know if this works for you :) |
It works! Thanks. I did figure out I could do |
Great, thanks for raising the issue! Sorry, I'm not too sure what you're asking for re the array. If you want to lazy load yarn I don't think that's gonna be possible because that's all handled with homebrew symlinks. |
I don't want to lazy load yarn, but yarn depends on node, which is lazy loaded. So I want your same wrapper to include yarn (that is, load up nvm so Node is loaded) |
Ahhhh, I see. Yeah that would be possible although I'm kinda reluctant to do that. It's not a very common use case, the issue is occurring because you're using two different package managers to install node modules. The ideal solution would be to just use npm for everything, although yarn do make good arguments against it. I think a better solution may be for me to manually check if yarn is installed and add that to the array. Other people will likely have this issue with yarn so it'll be nice if it works automatically. And it's unlikely to occur in any other scenarios so doesn't really warrant an extra option. |
Yeah, that's fine as well 😄 |
I'll take a look at that tomorrow :) You can track progress here: #16 |
No rush, thank you! |
I installed yarn through brew instead of npm (as it's recommended that way), but since Yarn in brew depends on node, that gets installed as well, and using
node
ornpm
doesn't load nvm any more.The text was updated successfully, but these errors were encountered: