Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upng update advice incorrect. ng update @angular/cli does nothing #12348
Comments
|
Still broken in ng7 and cli v7. ng update yields: We analyzed your package.json, there are some packages to update:
Name Version Command to update
--------------------------------------------------------------------------------
@angular/cdk 6.4.7 -> 7.0.1 ng update @angular/cdk
@angular/cli 6.1.2 -> 7.0.3 ng update @angular/cli
@angular/core 6.1.10 -> 7.0.1 ng update @angular/core
@angular/material 6.4.7 -> 7.0.1 ng update @angular/material
@ngrx/store 6.0.1 -> 6.1.0 ng update @ngrx/store
rxjs 6.2.2 -> 6.3.3 ng update rxjsrunning |
|
Remove node_modules and try again |
|
ng update has never worked as it should... |
Bug Report or Feature Request (mark with an
x)Command (mark with an
x)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
Desired functionality
ng update @angular/cli should update to the version as indicated by the ng update command.