-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Always use globally installed npm binary #410
Conversation
I applied this commit manually to my installation.
Debug log:
|
The previous attempt (#410 (comment)) nuked node_modules/ and the local npm binary as well.
It seems 2fa-required isn't available in npm 5.x.x |
Another option: when |
That would be weird. Better to always use the global ones. |
@Kerumen Are you interested in finishing this? The only issue that's currently blocking this PR is #410 (comment). |
@itaisteinherz I rebased and added |
@itaisteinherz Don't merge this yet. I'm working on something. |
@itaisteinherz I fixed all the missing spots. 😅 |
This is no longer needed as |
In any case, @Kerumen thanks for your contribution :) |
I just had an issue because of 2 different npm binaries installed on my machine. One was up-to-date and the other was very old. I figured out that the
node@10
I've installed with brew has a "local" npm binary attached to it.For
execa
,preferLocal
is set totrue
by default hence it will try to load local binaries first.I think it's - for
npm
at least - a better idea to always load the global binary instead of any local (outdated) ones.