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

No sandbox installation - tsc error on install #103

Open
kavika-1 opened this issue Sep 22, 2021 · 1 comment
Open

No sandbox installation - tsc error on install #103

kavika-1 opened this issue Sep 22, 2021 · 1 comment

Comments

@kavika-1
Copy link

akamai install sandbox fails with the cryptic unable to execute package manager: npm
manually cloning cli-sandbox and running npm install results in:

...

> [email protected] build-ts /home/david/.akamai-cli/src/cli-sandbox
> tsc

src/utils/cli-utils.ts:71:43 - error TS2345: Argument of type '{ year: string; month: string; day: string; hour: string; minute: string; timeZone: string; timeZoneName: string; }' is not assignable to parameter of type 'DateTimeFormatOptions'.
  Types of property 'year' are incompatible.
    Type 'string' is not assignable to type '"numeric" | "2-digit"'.

71   return new Intl.DateTimeFormat('en-US', options).format(date)

Was able to successfully complete npm install by editing this file on-box. Simplest fix appears to be fixing the const declaration for function dateToString(date) by typeing options like const options: Intl.DateTimeFormatOptions = ...

@herzykj
Copy link
Contributor

herzykj commented Apr 12, 2023

try it again on new cli-sandbox version (1.6.0). If it still won't work please share your node version, npm version, os, and Java version.

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

No branches or pull requests

2 participants