Skip to content

ng update fails when there is an npm dependency on a git repo #10775

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

Closed
ronzeidman opened this issue May 10, 2018 · 8 comments
Closed

ng update fails when there is an npm dependency on a git repo #10775

ronzeidman opened this issue May 10, 2018 · 8 comments

Comments

@ronzeidman
Copy link

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

@intellix
Copy link
Contributor

intellix commented May 10, 2018

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

@danletecky
Copy link

danletecky commented May 13, 2018

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

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

@Maryna-Yelakova
Copy link

Maryna-Yelakova commented May 14, 2018

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@

@louisgv
Copy link

louisgv commented May 21, 2018

Also having the same issue as @Maryna-Yelakova

@joelebeau1
Copy link

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

@ashanan
Copy link

ashanan commented May 23, 2018

This looks like the same issue: #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

@clydin
Copy link
Member

clydin commented Jun 7, 2018

Duplicate of #10642

@clydin clydin marked this as a duplicate of #10642 Jun 7, 2018
@clydin clydin closed this as completed Jun 7, 2018
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants