question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng update gives error when dependency is local only

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
james-tonicanalyticscommented, May 4, 2018

I am also experiencing this issue.

The temporary solution that stopped the error occurring was to delete the local dependency from the package.json file and then run ng update @angular/cli. Once the .angular-cli.json was migrated to angular.json, I added the local dependency back in.

1reaction
thorstencommented, Aug 10, 2018

Same issue here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to update Angular from 10 to 11 due to dependency ...
1- go to Nodejs website and update your version to the latest LTS version. · 2- go to your OS command line and...
Read more >
ng update - Angular
Shows a help message for this command in the console. boolean. --migrate-only. Only perform a migration, do not update the installed version.
Read more >
How To Update Angular CLI To Latest Version
To update Angular CLI version in your local projects use the following commands. Navigate to your local Angular project folder and execute the ......
Read more >
Common errors | npm Docs
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This can be caused...
Read more >
ng update - Angular
If false, will error out if installed packages are incompatible with the update. Default: false. --from= from. Version from which to migrate from....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found