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

DNS error when trying to install @deno/deployctl #308

Open
lauridskern opened this issue Apr 18, 2024 · 3 comments · May be fixed by #309
Open

DNS error when trying to install @deno/deployctl #308

lauridskern opened this issue Apr 18, 2024 · 3 comments · May be fixed by #309

Comments

@lauridskern
Copy link

lauridskern commented Apr 18, 2024

When running deno install -Arf jsr:@deno/deployctl I get the following error:

error: Import 'https://registry-staging.deno.com/@deno/deployctl/meta.json' failed: error sending request for url (https://registry-staging.deno.com/@deno/deployctl/meta.json): error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known

I am not using a proxy.

@chapoteaud
Copy link

Similar error as well when trying to install deployctl. Tried the following:

  1. deno install -Arf https://deno.land/x/deploy/deployctl.ts
    Warning Implicitly using latest version (1.12.0) for https://deno.land/x/deploy/deployctl.ts
    error: Import 'https://registry-staging.deno.com/@std/path/meta.json' failed: error sending request for url (https://registry-staging.deno.com/@std/path/meta.json): error trying to connect: dns error: failed to lookup address information: Name or service not known
  2. deno install -A jsr:@deno/deployctl
    error: Import 'https://registry-staging.deno.com/@deno/deployctl/meta.json' failed: error sending request for url (https://registry-staging.deno.com/@deno/deployctl/meta.json): error trying to connect: dns error: failed to lookup address information: Name or service not known

@chapoteaud
Copy link

Follow-up: Got my error working by upgrading Deno to 1.42.1. Install was successful and had to manually add to path variable. Hope this helps someone else

@magurotuna magurotuna linked a pull request Apr 26, 2024 that will close this issue
@magurotuna
Copy link
Member

That DNS error happens when your Deno version is old. As @chapoteaud pointed out, upgrading Deno to 1.41.1+ (the latest version, 1.42.4 as of now, is generally recommended though) should solve the issue.

I feel the minimum required Deno version would be nice to have in readme to avoid confusion - just opened a PR for this #309

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

Successfully merging a pull request may close this issue.

3 participants