elm-script icon indicating copy to clipboard operation
elm-script copied to clipboard

Deno errors when trying to install

Open eniac314 opened this issue 2 years ago • 0 comments

I am using linux (pop-os) I installed deno with curl -fsSL https://deno.land/install.sh | sh without issues.

Trying to install the script using the command deno install -A -n elm-script https://elm-script.github.io/latest resulted in these errors:

Download https://elm-script.github.io/latest
Download https://deno.land/[email protected]/path/mod.ts
Download https://deno.land/[email protected]/path/_constants.ts
Download https://deno.land/[email protected]/path/_interface.ts
Download https://deno.land/[email protected]/path/common.ts
Download https://deno.land/[email protected]/path/glob.ts
Download https://deno.land/[email protected]/path/posix.ts
Download https://deno.land/[email protected]/path/separator.ts
Download https://deno.land/[email protected]/path/win32.ts
Download https://deno.land/[email protected]/testing/asserts.ts
Download https://deno.land/[email protected]/path/_globrex.ts
Download https://deno.land/[email protected]/path/_util.ts
Download https://deno.land/[email protected]/fmt/colors.ts
Download https://deno.land/[email protected]/testing/diff.ts
Check https://elm-script.github.io/latest
error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname;
                 ~~~
    at https://deno.land/[email protected]/path/posix.ts:438:18

TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname
                 ~~~
    at https://deno.land/[email protected]/path/win32.ts:917:18

Found 2 errors.

eniac314 avatar Apr 15 '22 00:04 eniac314