Angular-cli: ng update fails when there is an npm dependency on a git repo

Created on 10 May 2018  路  8Comments  路  Source: angular/angular-cli

Versions

Angular CLI: 6.0.0
Node: 8.11.1
OS: win32 x64
Angular: 5.2.10
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.0
@angular-devkit/build-angular     0.6.0
@angular-devkit/build-optimizer   0.6.0
@angular-devkit/core              0.6.0
@angular-devkit/schematics        0.6.0
@angular/cdk                      5.2.5
@angular/cli                      6.0.0
@angular/flex-layout              5.0.0-beta.14
@angular/material                 5.2.5
@ngtools/webpack                  6.0.0
@schematics/angular               0.6.0
@schematics/update                0.6.0
rxjs                              5.5.10
typescript                        2.6.2
webpack                           4.6.0

Repro steps

Observed behavior

Registry returned 404 for GET on https://registry.npmjs.org/my-shared-lib

Desired behavior

everything to work

medium broken bufix

Most helpful comment

Just came here to post the same thing. In our case it's a github repo. We're not publishing packages to npm and instead depend on the prepare step that was added in npm 5:

"ionic-split-pane": "github:xcaliber-tech/ionic-split-pane",

npm 5 with a prepare script will download devDependencies for that package, run that script and it's essentially the same without having to publish to npm: https://github.com/xcaliber-tech/ionic-split-pane/blob/master/package.json#L42

Same error as above: Registry returned 404 for GET on https://registry.npmjs.org/ionic-split-pane

All 8 comments

Just came here to post the same thing. In our case it's a github repo. We're not publishing packages to npm and instead depend on the prepare step that was added in npm 5:

"ionic-split-pane": "github:xcaliber-tech/ionic-split-pane",

npm 5 with a prepare script will download devDependencies for that package, run that script and it's essentially the same without having to publish to npm: https://github.com/xcaliber-tech/ionic-split-pane/blob/master/package.json#L42

Same error as above: Registry returned 404 for GET on https://registry.npmjs.org/ionic-split-pane

The same error is returned for gzipped tarball (tgz) locations:

"my-package": "https://mypackagesourceserver.com/my-package.tgz"

I have the same issue. I have performed an upgrade Angular packages to v6

The Angular CLI configuration format has been changed, and your existing configuration can
be updated automatically by running the following command:

  ng update @angular/cli

I get this error every time I run this command

$ ng update @angular/cli
Registry returned 404 for GET on https://registry.npmjs.org/typescript@

Also having the same issue as @Maryna-Yelakova

Also having this issue trying to run ng update @angular/cli with multiple npm dependencies on git repos

This looks like the same issue: https://github.com/angular/angular-cli/issues/10167

It's not clear to me why that issue was closed, since it appears to still be broken. There is a workaround there, though.

Workaround: (haven't tried it yet, so YMMV) remove your private repo dependencies, upgrade, re-add your depenedencies

Duplicate of #10642

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

naveedahmed1 picture naveedahmed1  路  3Comments

donaldallen picture donaldallen  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments

brtnshrdr picture brtnshrdr  路  3Comments