Skip to content
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

Network error w/ scoped packages (@foo/bar) on Node 17.7 #8797

Closed
yura3d opened this issue Mar 9, 2022 · 12 comments
Closed

Network error w/ scoped packages (@foo/bar) on Node 17.7 #8797

yura3d opened this issue Mar 9, 2022 · 12 comments

Comments

@yura3d
Copy link

yura3d commented Mar 9, 2022

Running yarn outdated in project that has @apollo/client (for example) in package.json, I get many lines in output:

info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...

And finally:

error An unexpected error occurred: "https://apollo/%2fclient: getaddrinfo ENOTFOUND apollo".

Seems like @apollo/client converts to https://apollo/%2fclient
May be this behavior relates to nodejs/node#42136

Trace:

Yarn version: 
  1.22.17

Node version: 
  17.7.0

Platform: 
  win32 x64

Trace: 
  Error: getaddrinfo ENOTFOUND apollo
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:72:26)
@utx0
Copy link

utx0 commented Mar 9, 2022

I am getting the same issues on my local project too:

❯ yarn
yarn install v1.22.17
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://solana/%2fspl-token: getaddrinfo ENOTFOUND solana".
info If you think this is a bug, please open a bug report with the information provided in "/home/utx0/Code/hydra/hydra-protocol/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

@nuintun

This comment was marked as spam.

@echavaillaz

This comment was marked as spam.

@arcanis
Copy link
Member

arcanis commented Mar 10, 2022

May be this behavior relates to nodejs/node#42136

Correct - it seems to cause a breaking change in url.resolve:
nodejs/node#42136 (comment)

@arcanis
Copy link
Member

arcanis commented Mar 10, 2022

Opened an issue at nodejs/node#42279

@merceyz
Copy link
Member

merceyz commented Mar 10, 2022

The problematic change has been reverted in Node and v17.7.1 should be released soon.
We've also released 1.22.18 with a fix for the issue.

@merceyz merceyz closed this as completed Mar 10, 2022
@merceyz merceyz pinned this issue Mar 10, 2022
@arcanis arcanis changed the title Broken package resolution on NodeJS 17.7.0 Network error w/ scoped packages (@foo/bar) on Node 17.7 Mar 10, 2022
@yura3d
Copy link
Author

yura3d commented Mar 11, 2022

@merceyz 1.22.18 is still not published in npm

@echavaillaz
Copy link

echavaillaz commented Mar 11, 2022

@yura3d The bug is fixed with node v17.7.1 so you not really need yarn v1.22.18

@alexgwolff
Copy link

Same problem in node 18.1.0

@Ultra980
Copy link

Ultra980 commented Apr 6, 2023

Same problem on node 18.15.0, with nix shell nixpkgs#yarn

@Ultra980
Copy link

Ultra980 commented Apr 6, 2023

yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.npmjs.org/@dnd-kit%2fcore: ETIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "/home/ultra/git/nixpkgs/pkgs/applications/misc/boostnote/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I also have @dnd-kit/core converted to @dnd-kit%2fcore...

@SHVM-09
Copy link

SHVM-09 commented Sep 21, 2023

I m also facing same issue but it works if I delete yarn.lock or after 5-6 times why so??
Screenshot 2023-09-21 at 4 21 59 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants