[SOLVED] Ioni2 Beta 11: UNMET PEER DEPENDENCY

So to begin the migration to Beta 11 I ran:

sudo npm install --save ionic-angular @angular/{common,compiler,core,http,forms,platform-browser,platform-browser-dynamic} rxjs@5.0.0-beta.6 zone.js@0.6.12

I met then following error/warning. Should them be fixed?

├── UNMET PEER DEPENDENCY @angular/common@2.0.0-rc.3
├── UNMET PEER DEPENDENCY @angular/compiler@2.0.0-rc.3
├── UNMET PEER DEPENDENCY @angular/core@2.0.0-rc.3
├── @angular/forms@0.2.0 
├── @angular/http@2.0.0-rc.3 
├── @angular/platform-browser@2.0.0-rc.3 
├── @angular/platform-browser-dynamic@2.0.0-rc.3 
├── ionic-angular@2.0.0-beta.10 
├── rxjs@5.0.0-beta.6 
├── zone.js@0.6.12 

npm WARN @angular/forms@0.2.0 requires a peer of @angular/core@^2.0.0-rc.4 but none was installed. 
npm WARN @angular/forms@0.2.0 requires a peer of @angular/common@^2.0.0-rc.4 but none was installed.
npm WARN @angular/forms@0.2.0 requires a peer of @angular/compiler@^2.0.0-rc.4 but none was installed.
1 Like

Running the command “npm install…” switched my package.json from my user to the root user and for that reason my packages in package.json where still linked with rc3 instead of rc4 respectively weren’t editable.

I ran “sudo chown myuser:staff package.json” and then the “npm install …” command again and it solved the issue.

Not the first time I ran into that problem, not the first time I forgot for a while what is the reason of the problem :wink:

Cause I don’t use sudo for my local files.

Also had similiar errors, but in my case it wasn’t the file permissions problem.

I solved it by using this command when updating to Beta 11 (manually specifying versions):

npm install --save ionic-angular@2.0.0-beta.11 @angular/common@2.0.0-rc.4 @angular/compiler@2.0.0-rc.4 @angular/platform-browser@2.0.0-rc.4 @angular/platform-browser-dynamic@2.0.0-rc.4 @angular/http@2.0.0-rc.4 @angular/core@2.0.0-rc.4 rxjs@5.0.0-beta.6 zone.js@0.6.12

3 Likes

i have the same issue but now the umeet depedency is
@angular/core@^2.0.0-rc.5
@angular/http@^2.0.0-rc.5,
while mine are
@angular/core@2.0.0-rc.4
@angular/http@2.0.0-rc.4
Please help
Thanks in advance

also when i run ionic -v i get
2.0.0-beta.37

when i run this i get this message:
npm WARN enoent ENOENT: no such file or directory, open '/home/user/package.json’
npm WARN user No description
npm WARN user No repository field.
npm WARN user No README data
npm WARN user No license field.