0

I'm looking to migrate my angular 2 project to angular 4. I ran the command:

npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@latest typescript@latest --save

Found at this official link: http://angularjs.blogspot.in/2017/03/angular-400-now-available.html

But then this typescript error shows up:

├── @angular/[email protected] 
├─┬ @angular/[email protected]
│ └── [email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├─┬ @angular/[email protected]  invalid
│ └─┬ @angular/[email protected] 
│   └── [email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├─┬ @angular/[email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├── @angular/[email protected] 
├── [email protected]  invalid
└── UNMET PEER DEPENDENCY [email protected]

npm WARN @angular/[email protected] requires a peer of zone.js@^0.8.4 but none was installed.

2 Answers 2

3

Its a warning telling to to install zone.js . Try using ng serve if you are using cli to check if the application starts.

note - Angular 4 will support only TypeScript 2.1 . hope you have updated ts version

Sign up to request clarification or add additional context in comments.

Comments

2

It's only a warn not error. You need also update zone.js to resolve this warn.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.