angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Update from angular/cli1.0.0-rc4 to angular/cli 1.0.0 does not update angular to version 4

Open AlMuIssues opened this issue 9 years ago • 5 comments

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.0.0 node: 6.9.5 os: linux x64 @angular/common: 2.4.10 @angular/compiler: 2.4.10 @angular/core: 2.4.10 @angular/flex-layout: 2.0.0-rc.1 @angular/forms: 2.4.10 @angular/http: 2.4.10 @angular/platform-browser: 2.4.10 @angular/platform-browser-dynamic: 2.4.10 @angular/router: 3.4.10 @angular/cli: 1.0.0 @angular/compiler-cli: 2.4.10

Repro steps.

Update angular/cli from 1.0.0-rc4 to 1.0.0. In package.json are old angular versions. I expected angular 4. Output after run ng -v: @angular/cli: 1.0.0 node: 6.9.5 os: linux x64 @angular/common: 2.4.10 @angular/compiler: 2.4.10 @angular/core: 2.4.10 @angular/flex-layout: 2.0.0-rc.1 @angular/forms: 2.4.10 @angular/http: 2.4.10 @angular/platform-browser: 2.4.10 @angular/platform-browser-dynamic: 2.4.10 @angular/router: 3.4.10 @angular/cli: 1.0.0 @angular/compiler-cli: 2.4.10

The log given by the failure.

Desired functionality.

Mention any other details that might be useful.

AlMuIssues avatar Mar 24 '17 09:03 AlMuIssues

Updating angular-cli version will not update your packege.json, you should create new app with ng new MyAngularApp

aslan92 avatar Mar 24 '17 09:03 aslan92

I have updated my angular to version 4.0( description from angular blog page): npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@latest typescript@latest --save

Is it the same as updating with ng new MyProject?

AlMuIssues avatar Mar 24 '17 11:03 AlMuIssues

While there is currently no upgrade suggested plan I find it easier to simply create a new project and copy/compare both package.json files, take it consideration that some of the other files may have changed for example the tsconfig changed from the src folder to the project root.

RicardoVaranda avatar Mar 24 '17 13:03 RicardoVaranda

Yeah we have a 'real' update command planned but we're not there yet. There's an upgrade guide you can follow though: https://github.com/angular/angular-cli/wiki/stories

filipesilva avatar Mar 24 '17 15:03 filipesilva

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.