yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.44k stars 2.73k forks source link

Connection ECONNREFUSED behind a proxy with CNTLM #2754

Open gustavoramos00 opened 7 years ago

gustavoramos00 commented 7 years ago

Do you want to request a feature or report a bug? Report a bug.

What is the current behavior? Yarn doesn't work behind a corporate proxy with CNTLM on other port than 80. Npm works fine.

If the current behavior is a bug, please provide the steps to reproduce.

$ yarn global add yo
yarn global v0.20.3
[1/4] Resolving packages...
warning There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "http://registry.npmjs.org/yo: connect ECONNREFUSED 127.0.0.1:80".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\gustavo_71112\\AppData\\Local\\Yarn\\config\\global\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

What is the expected behavior?

nidhinmtw commented 7 years ago

I have the same issue. I was trying to run the create-react-app command which defaulted to yarn and the same error came. error An unexpected error occurred: "http://registry.npmjs.org/is-obj: connect ECONNREFUSED 127.0.0.1:3128". yarn add command also gives the same error. But npm is working fine.