Open cdaringe opened 7 years ago
Are you able to use a debugging proxy (such as Fiddler or Charles) to see what Yarn is doing differently to npm? That might give some hints as to what is going wrong.
hmm. i just booted up Charles
. i see http traffic in and out, but not my https npm traffic. have any xrefs to get going a little quicker? my guess and check method here isn't proving terribly fruitful
You'll need to enable SSL proxying (https://www.charlesproxy.com/documentation/proxying/ssl-proxying/) and either install Charles' root CA or set an environment variable NODE_TLS_REJECT_UNAUTHORIZED=0
to get Node.js to trust the SSL proxy.
hey @Daniel15, thanks for the tips. Can you advise even further, perhaps?
enabling SSL clearly worked when driving thru the browser
ive enabled SSL for npmjs.org (& will for the yarn reg too)
ive trusted the cert Charles installed into OSX
all webbrowser traffic shows up in Charles, yet NODE_TLS_REJECT_UNAUTHORIZED=0 npm i -D <pkg> --verbose
still generates no traffic in Charles. nor does curl https://asana.com
for that matter, yet i get a response.
i have only one connected NIC, my wifi, and it shows that charles has its attention (see screenshots below).
what else could i be missing?
ssl proxy enabled:
trusted cert:
network proxy settings:
@cdaringe did you ever get this worked out?
@trevorriles, i didn't :(
@trevorriles, i didn't :(
Bummer we just hit the same thing. I'll let you know if I figure anything out.
feature or bug
bug! 🐛
actual behavior
yarn
yields a401
, where npm installs all deps successfully. :/reproduce
oh man, I would love to xref a project to reproduce, but arg, closed source project 🤕. it's also somewhat of a system level thing (e.g. yarn + registry).
here's what I have:
these settings work w/ npm, but not yarn.
What is the expected behavior?
the above auth settings to work as they do w/ npm.
Please mention your node.js, yarn and operating system version.
i raise you one more and share my yarn-error.log.
does the tarball fetcher request not include the same headers/body that other xhrs do?