-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
test-npm-install.js now requires Internet connection #36895
Comments
Cc @nodejs/npm |
I'm taking a look and trying to reproduce but running |
The GFW almost certainly silently discards packets so turning off your network is not the same thing. On my macOS laptop, adding this to
I'm not sure if silently dropping packets destined for |
Disabling any internet-required features (namely audit and update-notifer) in order for the test to work without an internet connection. - Fixes: nodejs#36895
Thanks @Trott that did it 😊 It turns out there were two requests happening in that test, one reaching out to the registry to retrieve info for the update notifier feature the npm cli provides ( It does seem like the internal mechanisms in which these features work might have slightly changed from v6 to v7 (which we'll follow up in the npm cli) - given that none of these features seem essential to the purpose of this test I just sent a PR that disables them in #36933 |
Disabling any internet-required features (namely audit and update-notifer) in order for the test to work without an internet connection. - Fixes: #36895 PR-URL: #36933 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Disabling any internet-required features (namely audit and update-notifer) in order for the test to work without an internet connection. - Fixes: #36895 PR-URL: #36933 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
It seems recently test-npm-install.js started requiring Internet connection (which I think means now running
npm install
on apackage.json
with no module to install requires Internet connection somehow). We should either try to make it runnable offline or move it totest/internet
. Anyone familiar with the installer know how to make the former possible?P.S. this causes a TIMEOUT when I am behind the GFW
cc @nodejs/testing
The text was updated successfully, but these errors were encountered: