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
{{ message }}
Repository navigation
ng add gives errors with a before parameter in the .npmrc file #24685
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
For before parameter in npm config, value is of type string, for example before = 2023-02-09T08:45:22.778Z. packument function of pacote package, expects before as js Date type.
It seems to me that it is necessary to add a date type conversion in the normalizeOptions function in packages/angular/cli/src/utilities/package-metadata.ts
Minimal Reproduction
Add before parameter to npm config (.npmrc file) - before = 2023-02-09T08:45:22.778Z
Run script ng add @angular/material
Exception or Error
`Unable to load package information from registry: this.before.toISOString is not a function`
Activity
fix(@angular/cli): convert `before` option in `.npmrc` to Date
fix(@angular/cli): convert `before` option in `.npmrc` to Date
fix(@angular/cli): convert `before` option in `.npmrc` to Date
angular-automatic-lock-bot commentedon Mar 13, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.