ng add
gives errors with a before
parameter in the .npmrc
file
#24685
Labels
area: @angular/cli
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
Command
add
Is this a regression?
The previous version in which this bug was not present was
No response
Description
For
before
parameter in npm config, value is of typestring
, for examplebefore = 2023-02-09T08:45:22.778Z
.packument
function ofpacote
package, expectsbefore
as js Date type.It seems to me that it is necessary to add a date type conversion in the
normalizeOptions
function inpackages/angular/cli/src/utilities/package-metadata.ts
Minimal Reproduction
before
parameter to npm config (.npmrc
file) -before = 2023-02-09T08:45:22.778Z
ng add @angular/material
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: