Title: ng update ignores project .npmrc registry · Issue #27163 · angular/angular-cli · GitHub
Open Graph Title: ng update ignores project .npmrc registry · Issue #27163 · angular/angular-cli
X Title: ng update ignores project .npmrc registry · Issue #27163 · angular/angular-cli
Description: Command update Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description I have a project level .npmrc with registry=https://registry....
Open Graph Description: Command update Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description I have a project leve...
X Description: Command update Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description I have a project leve...
Opengraph URL: https://github.com/angular/angular-cli/issues/27163
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng update ignores project .npmrc registry","articleBody":"### Command\r\n\r\nupdate\r\n\r\n### Is this a regression?\r\n\r\n- [ ] Yes, this behavior used to work in the previous version\r\n\r\n### The previous version in which this bug was not present was\r\n\r\n_No response_\r\n\r\n### Description\r\n\r\nI have a project level .npmrc with\r\n`registry=https://registry.npmjs.org/`\r\nand a user level .npmrc with\r\n`registry=https://example-company-private-repo.org/`\r\n\r\nAs described here https://docs.npmjs.com/cli/v10/configuring-npm/npmrc project level config should override user level config. The output of npm config:\r\n```\r\n; \"user\" config from /Users/sam.wootton/.npmrc\r\n; registry = \"https://example-company-private-repo.org/\" ; overridden by project\r\n; \"project\" config from /Users/sam.wootton/devspace/personal/ngstuff/myproject/.npmrc\r\nregistry = \"https://registry.npmjs.org/\" \r\n; \"cli\" config from command line options\r\n```\r\n\r\n\r\n### Minimal Reproduction\r\n\r\nng update (with different registry in .npmrc at the user and project level).\r\nI've removed node_modules (to ensure no packages from the user level registry)\r\n\r\n### Exception or Error\r\n\r\n```text\r\nRunning ng update, the user level registry is used and the project level one is ignored:\r\n\r\nng update @angular/core@16 @angular/cli@17 \r\nThe installed Angular CLI version is outdated.\r\nInstalling a temporary Angular CLI versioned 16.2.12 to perform the update.\r\nnpm ERR! code ENOTFOUND\r\nnpm ERR! syscall getaddrinfo\r\nnpm ERR! errno ENOTFOUND\r\nnpm ERR! network request to https://company-private-repo.org/@angular%2fcli failed, reason: getaddrinfo ENOTFOUND company-private-repo.org\r\nnpm ERR! network This is a problem related to network connectivity.\r\nnpm ERR! network In most cases you are behind a proxy or have bad network settings.\r\nnpm ERR! network \r\nnpm ERR! network If you are behind a proxy, please make sure that the\r\nnpm ERR! network 'proxy' config is set properly. See: 'npm help config'\r\n```\r\n```\r\n\r\n\r\n### Your Environment\r\n\r\n```\r\nAngular CLI: 15.2.10\r\nNode: 16.15.0\r\nPackage Manager: npm 8.5.5\r\nOS: darwin arm64\r\n\r\nAngular: \u003cerror\u003e\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1502.10 (cli-only)\r\n@angular-devkit/build-angular \u003cerror\u003e\r\n@angular-devkit/core 15.2.10 (cli-only)\r\n@angular-devkit/schematics 15.2.10 (cli-only)\r\n@angular/cli 15.2.10 (cli-only)\r\n@schematics/angular 15.2.10 (cli-only)\r\nrxjs 6.6.7 (cli-only)\r\ntypescript \u003cerror\u003e\r\n```\r\n\r\n\r\n### Anything else relevant?\r\n\r\n_No response_","author":{"url":"https://github.com/samwootton","@type":"Person","name":"samwootton"},"datePublished":"2024-02-25T10:39:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/27163/angular-cli/issues/27163"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:08c42e2a-9388-d8c2-347f-dbd3ab1cbfd3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9980:136256:164EFF:1E716A:6A62EC3D |
| html-safe-nonce | ac39ed1ecf2bdeb3e427f706958d1a92cad9c62e79a8dba175f22626e5f6f08e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTgwOjEzNjI1NjoxNjRFRkY6MUU3MTZBOjZBNjJFQzNEIiwidmlzaXRvcl9pZCI6Ijc5NzUwMDg3Mjg1NTg3OTE3NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 20058a3aa8d92cdd93a781f99abaceb2635481fc87ba4d53e3d676127bd7dd6c |
| hovercard-subject-tag | issue:2152702339 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/27163/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e478d15fe7c1fe70c41cb0f9c04713d7afc1d4b0f11daf12463e45b1522029e/angular/angular-cli/issues/27163 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e478d15fe7c1fe70c41cb0f9c04713d7afc1d4b0f11daf12463e45b1522029e/angular/angular-cli/issues/27163 |
| og:image:alt | Command update Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description I have a project leve... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | samwootton |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width