-
Notifications
You must be signed in to change notification settings - Fork 327
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
ERR_INVALID_URL with npm alias #1318
Comments
Hi, thanks for reporting. What version of node are you on? I'm not yet able to reproduce on node v20, v18, or v16. |
Node v18.17.1, Windows 10. I'm able to consistently reproduce on my machine, interesting 🤔 |
Hmmm, strange. I ran If you'd like to take a stab at this, you could start by running the tests on your machine: UPDATED:
|
Looks like I got a lot of test failures, hmmm. test.log. But lots of successes too. If I can do any further debugging on my end, please let me know. |
Oops, I omitted a step. You'll need to run |
Here's the updated test log. It seems like most were successful, but a couple of failures: |
Thanks. The doctor test failure is a known issue and unrelated. The two bin failures are false negatives caused by the presence of Notably, all of the tests related to parsing npm and GitHub urls are passing. This (plus the fact that the tests pass on Windows in the GitHub action) suggests that the issue is not covered by the tests. I can add your specific example to the tests and see if the CI can reproduce, but ultimately someone who can reproduce the issue on a local machine will need to identify the issue and open a PR with the fix. |
Thanks for the info, I'll do some more digging to see if I can identify where the issue is! |
The issue appears to be due to
which appears to be due to
The easiest solution would be to |
PR to fix at #1319. Thanks for working through that with me! |
Looks like this is a regression with Node 18.17 specifically: nodejs/node#49330 |
npm-check-updates
node >= 14.14
Steps to Reproduce
Dependencies:
Steps:
package.json
Current Behavior
Expected Behavior
Be able to parse and understand the npm alias. This works in version 7, as per
npx npm-check-updates@7.0.0 -i
, and reported at #633.The text was updated successfully, but these errors were encountered: