ng update gives error when dependency is local only
See original GitHub issueVersions
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:
- Created 5 years ago
- Reactions:6
- Comments:9 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Same issue here.