ng update advice incorrect. ng update @angular/cli does nothing
See original GitHub issueBug Report or Feature Request (mark with an x
)
- [ x] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x
)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ x] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
node --version v10.3.0 npm --version 6.4.1 ng --version Your global Angular CLI version (6.2.3) is greater thanyour local version (6.0.0). The local Angular CLI version is used.
To disable this warning use “ng config -g cli.warnings.versionMismatch false”.
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| ||_ _|
/ △ \ | '_ \ / | | | | |/ _
| '__| | | | | | |
/ ___ | | | | (| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/
Angular CLI: 6.0.0 Node: 10.3.0 OS: darwin x64 Angular: 6.0.0 … cli, common, compiler, compiler-cli, core, forms, http … language-service, platform-browser, platform-browser-dynamic … router
Package Version
@angular-devkit/architect 0.6.0 @angular-devkit/build-angular 0.6.0 @angular-devkit/build-ng-packagr 0.6.0 @angular-devkit/build-optimizer 0.6.0 @angular-devkit/core 0.6.0 @angular-devkit/schematics 0.6.0 @angular/animations 6.0.1 @angular/cdk 6.0.2 @angular/material 6.0.2 @ngtools/json-schema 1.1.0 @ngtools/webpack 6.0.0 @schematics/angular 0.6.0 @schematics/update 0.6.0 ng-packagr 3.0.0-rc.3 rxjs 6.1.0 typescript 2.7.2 webpack 4.6.0
Repro steps
Existing ng 6 CLI project with three projects (one app and two libraries) following output from ng update
ng update
Your global Angular CLI version (6.2.3) is greater than your local
version (6.0.0). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
We analyzed your package.json, there are some packages to update:
Name Version Command to update
--------------------------------------------------------------------------------
@angular/cli 6.0.0 -> 6.2.3 ng update @angular/cli
@angular/core 6.0.0 -> 6.1.8 ng update @angular/core
@angular/material 6.0.2 -> 6.4.7 ng update @angular/material
rxjs 6.1.0 -> 6.3.2 ng update rxjs
There might be additional packages that are outdated.
Or run ng update --all to try to update all at the same time.
$ ng update @angular/cli
Your global Angular CLI version (6.2.3) is greater than your local
version (6.0.0). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Found a modern configuration file. Nothing to be done.
Desired functionality
ng update @angular/cli should update to the version as indicated by the ng update command.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:5 (1 by maintainers)
Remove node_modules and try again
Still broken in ng7 and cli v7.
ng update yields:
running
ng update @angular/cli
yields:Found a modern configuration file. Nothing to be done.
With no packages being updated