Skip to content

ng update gives error when dependency is local only #10614

@hodlbank

Description

@hodlbank

Versions

Angular CLI: 6.0.0-rc.10
Node: 8.11.1
OS: linux x64
Angular: 6.0.0-rc.6
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.5.13
@angular-devkit/core         0.5.13
@angular-devkit/schematics   0.5.13
@angular/cdk                 6.0.0-rc.14
@angular/cli                 6.0.0-rc.10
@angular/material            6.0.0-rc.14
@schematics/angular          0.5.13
@schematics/update           0.5.13
rxjs                         6.0.0
typescript                   2.8.3

Repro steps

  • have Angular 5.x project with local-only dependencies, i.e. dependency added into package.json but does not exist in the npmjs.org repository .
  • run ng update @angular/cli in order to convert .angular-cli.json into proper .angular.json

Observed behavior

> ng update @angular/cli --migrate-only --from=1.7.4
Registry returned 404 for GET on https://registry.npmjs.org/some-private-package

Desired behavior

I expect that ng update will just convert my .angular-cli.json into proper .angular.json without digging into my dependencies.

Mention any other details that might be useful (optional)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions