denoland / deployctl

Command line tool for Deno Deploy
https://deno.com/deploy
MIT License
352 stars 58 forks source link

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

Closed lauridskern closed 4 months ago

lauridskern commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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