Skip to content
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

Not working on Windows 10 #3

Closed
AllanOricil opened this issue Jul 20, 2020 · 3 comments
Closed

Not working on Windows 10 #3

AllanOricil opened this issue Jul 20, 2020 · 3 comments

Comments

@AllanOricil
Copy link

I tried the command to setup multiple registries and did not work. Then I tried passing the -h flag and had the same problem. I think npx can't get the PATH on Windows 10. My colleague is using on linux without any problem.

image

Node version
image

Could you help me?

@AllanOricil AllanOricil changed the title Nor working on Windows 10 Not working on Windows 10 Jul 20, 2020
@xymopen
Copy link
Owner

xymopen commented Jul 21, 2020

The bug results from index.js#L358@npm/npx where npx tries to resolve the bin script by looking for "$basedir/node" BINJS while npm generates "$basedir//usr/bin/node" BINJS for this module. There is not much we can fix in this module. The bug seems to be tracking at npm/npx#5 .

@AllanOricil
Copy link
Author

Also, can you turn it in a package for me to install it globaly and then run it like?

npm-multiregistries --args

@AllanOricil
Copy link
Author

The bug results from index.js#L358@npm/npx where npx tries to resolve the bin script by looking for "$basedir/node" BINJS while npm generates "$basedir//usr/bin/node" BINJS for this module. There is not much we can fix in this module. The bug seems to be tracking at npm/npx#5 .

I understood it now. Thanks anyway. Hope it gets fixed.

@AllanOricil AllanOricil closed this as not planned Won't fix, can't repro, duplicate, stale May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants