-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
create-react-app trying to get compression lib over HTTP instead of HTTPS - failing behind proxy #4588
Comments
Can reproduce, have yet to find a fix. Works fine with NPM. Environment
Attempted Fixes
Verbose Output
|
I don't think this is a |
@rodoabad I was having this issue as well so I looked through the |
@shleycarter Thank you, this seems to have been my problem as well. Have you figured a solution on what to add to Malwarebytes' Exclusions List, rather than disabling protection as a whole? EDIT: Latest Malwarebytes update fixes this issue! |
For me turning off Windows Defender worked. |
Turning off windows defender also worked. |
Is this a bug report?
Yes
Did you try recovering your dependencies?
$ npm --version
6.1.0
$ yarn --version
1.7.0
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
Environment:
OS: Windows 7
Node: 10.4.0
Yarn: 1.7.0
Steps to Reproduce
Note the verbose log output from create-react-app, this happens consistently. Everything up until the compression library works as its getting fetched via HTTPS:
verbose 25.081 Request "https://registry.npmjs.org/object-copy" finished with status code 200.
verbose 25.086 Performing "GET" request to "https://registry.npmjs.org/copy-descriptor".
verbose 25.243 Request "https://registry.npmjs.org/copy-descriptor" finished with status code 200.
[2/4] Fetching packages...
verbose 25.502 Performing "GET" request to "http://registry.npmjs.org/compression/-/compression-1.7.2.tgz".
verbose 25.554 Error: http://registry.npmjs.org/compression/-/compression-1.7.2.tgz: Invalid tar header. Maybe the tar is c
orrupted or it needs to be gunzipped?
at Object.module.exports.exports.decode (C:\Users\smcgill\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:77578:43)
at Extract.onheader (C:\Users\smcgill\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:146111:39)
Expected Behavior
Create a new react app
Actual Behavior
Fails consistently trying to download compression library due to our website filtering infrastructure blocking HTTP traffic to npmjs
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: