Hello.
I’m running the commands listed in this post: http://blog.ionic.io/announcing-ionic-cli-v3/ .
in order to update my project’s version and I’ve got all these errors or warning
Command executed:
npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest
Errors or Warning:
npm WARN ionic-angular@3.6.0 requires a peer of @angular/common@4.1.3 but none was installed.
npm WARN ionic-angular@3.6.0 requires a peer of @angular/compiler@4.1.3 but none was installed.
npm WARN ionic-angular@3.6.0 requires a peer of @angular/compiler-cli@4.1.3 but none was installed.
npm WARN ionic-angular@3.6.0 requires a peer of @angular/core@4.1.3 but none was installed.
npm WARN ionic-angular@3.6.0 requires a peer of @angular/forms@4.1.3 but none was installed.
npm WARN ionic-angular@3.6.0 requires a peer of @angular/http@4.1.3 but none was installed.
npm WARN ionic-angular@3.6.0 requires a peer of @angular/platform-browser@4.1.3 but none was installed.
npm WARN ionic-angular@3.6.0 requires a peer of @angular/platform-browser-dynamic@4.1.3 but none was installed.
npm WARN ionic-angular@3.6.0 requires a peer of rxjs@5.4.0 but none was installed.
npm WARN ionic-angular@3.6.0 requires a peer of zone.js@0.8.12 but none was installed.
How can I solve this issue ?
Thanks!
What are the exact commands you are running where?
Seems you have ionic-angular
in your package.json but not the rest of the stuff needed for an Ionic project.
Hi @Sujan12, the command is this:
npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest
and it’s listed in this post: listed in this post: [listed in this post: Announcing Ionic CLI v3 - Ionic Blog](listed in this post: Announcing Ionic CLI v3 - Ionic Blog)
Here is a screenshoot of my package.json, here you could see that the components with the warning are in the dependencies block.
Thanks!.
Why exactly are you doing what is in that post? This is probably outdated information. If you just want a current Ionic CLI and an updated project to go with it run npm install ionic -g
and then ionic info
in your project - the CLI will prompt your for needed updates.
Thanks! @Sujan12
I was trying to update my folder project.
Update what exactly: Ionic Framework? Ionic CLI? Dependencies?
Well in general I was trying to update all to the last version.
But you were on right, once I’ve updated the global the CLI prompt me the for the recents updates availables.
Did this also fix stuff for you again?
(In general: Never upgrade CLI and other stuff, app libraries, at the same time)
An important rule. Every time you manually edit package.json
in a way that changes dependencies, immediately run npm i
afterwards. Immediately. That means “before you do anything else”, especially things like this:
If you have modified dependencies, and npm hasn’t had a chance to implement those changes, you are likely to trigger a slew of peer dependency failures. It is important to sort out and either resolve these right away or really think through why you are OK ignoring them. If you can’t make a solid, compelling case for ignoring, don’t. Fix them.
Yes.
Thanks! @Sujan12 I will keep in mind your advice.
Thanks @rapropos I didn’t know that command. I will keep in mind.
And thanks by the advise. I don’t ignore any error message, for that reason I made this post, requesting some help to understand how to solve it.