-
Notifications
You must be signed in to change notification settings - Fork 12k
ng ignore global npm config for add and update command #14993
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
Comments
Hi, I tried this out and global npmrc is being read.
Can you kindly check where your global npmrc is being saved? |
We need a real repository @alan-agius4 . In user directory, the file .npmrc contains credentials for registry, but not registry address. with ng update |
At the moment there is no way to turn on the verbose logging for `ng update` and `ng add`. This is useful for use so that when users report issues such as npmrc is not read we can see the lookup locations. This also removes some reduncant that were being provided in `executeSchematic`. Related to #14993
At the moment there is no way to turn on the verbose logging for `ng update` and `ng add`. This is useful for use so that when users report issues such as npmrc is not read we can see the lookup locations. This also removes some reduncant that were being provided in `executeSchematic`. Related to #14993
We have the same problem with @angular/cli 9.1.0.
even though our global npmrc specifies our company npm-registry - Output of
|
Btw, if the global |
We have the inverse issue. Our local
|
Not sure if this is a diff issue, but we have our npm config entries set up in memory rather than in our npmrc files, and the correct values are used when we do a |
We're having the same problem with yarn. The local .yarnrc.yml file is completely ignored |
I think I'm having a similar problem while updating from angular 11 to angular 12 : May I add that trying by hand calling https://mycompanyregistry/@angular%2fcli does work. |
Thanks for reporting this issue. Luckily, it has already been fixed in one of the recent releases. Please update to the most recent version to resolve the problem. If the problem persists in your application after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. You can use |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Ng command
Description
ng
add
andupdate
ignore npm global config🔬 Minimal Reproduction
Define a private registry (it's also an proxy for publics packages)
Set authentication
Install angular/cli
And start a new project
Ok project created and all dependencies installed (private registry checked in package-lock.json)
The problem starts here
I want to transform my project to pwa see
response :
The add command requires to be run in an Angular project, but a project definition could not be found.
Ok change directory
response :
Unable to fetch package metadata: request to https://registry.npmjs.org/@angular%2fpwa failed, reason: connect ETIMEDOUT 104.16.26.35:443.
(I'am also behind a enterprise proxy)same result with
update
command, ng command want to access directly to registry.npmjs.org and not by private registry🌍 Your Environment
Npm version -> 6.9.2
The text was updated successfully, but these errors were encountered: