You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 = ...
The text was updated successfully, but these errors were encountered:
akamai install sandbox
fails with the crypticunable to execute package manager: npm
manually cloning cli-sandbox and running
npm install
results in:Was able to successfully complete
npm install
by editing this file on-box. Simplest fix appears to be fixing the const declaration forfunction dateToString(date)
by typeing options likeconst options: Intl.DateTimeFormatOptions = ...
The text was updated successfully, but these errors were encountered: