ng add --registry not working #16766
Labels
area: @angular/cli
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Unsure, probably not.Description
When trying to install a package with
ng add
from a local npm registry, usingng add package-name --registry=http://localhost:4873/
(Verdaccio in my case),ng add
seems to ignore the--registry
parameter and continues to try and pull the package from the registry url set in npm config.If I set the npm registry to localhost manually, ng add works fine.
npm config set registry http://localhost:4873
Previous issue which asked for this feature: #14189.
PR which supposedly added this feature: #14285.
🔬 Minimal Reproduction
Prerequisites:
Steps:
ng new
.ng add package-name --registry=http://localhost:4873
, replace package name and url with your own.https://registry.npmjs.org/
, obviously.🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: