Newb and Nightly


#1

ok, long story short, My Iphone is at IOS -11, and I’ve upgraded My Mac to Beta High Sierra and XCode 9

I do a build and I can now run on my Device, YaY! but!,

when I run it It covers over the top bar on phone, you know the one with battery, and wify and proider. (please tell me what this is called :-p)

So, I happened upon the iOS 11 Checklist and did the nightly

$ sudo npm install ionic-angular@nightly --save

i get,

npm WARN saveError ENOENT: no such file or directory, open ‘/Users/benjohansen/package.json’
/Users/benjohansen
├── UNMET PEER DEPENDENCY @angular/common@4.4.3
├── UNMET PEER DEPENDENCY @angular/compiler@4.4.3
├── UNMET PEER DEPENDENCY @angular/compiler-cli@4.4.3
├── UNMET PEER DEPENDENCY @angular/core@4.4.3
├── UNMET PEER DEPENDENCY @angular/forms@4.4.3
├── UNMET PEER DEPENDENCY @angular/http@4.4.3
├── UNMET PEER DEPENDENCY @angular/platform-browser@4.4.3
├── UNMET PEER DEPENDENCY @angular/platform-browser-dynamic@4.4.3
├── ionic-angular@3.6.1-201709261757
├── UNMET PEER DEPENDENCY rxjs@5.4.3
└── UNMET PEER DEPENDENCY zone.js@0.8.17

npm WARN enoent ENOENT: no such file or directory, open '/Users/benjohansen/package.json’
npm WARN enoent ENOENT: no such file or directory, open '/Users/benjohansen/node_modules/node.js/package.json’
npm WARN ionic-angular@3.6.1-201709261757 requires a peer of @angular/common@4.4.3 but none was installed.
npm WARN ionic-angular@3.6.1-201709261757 requires a peer of @angular/compiler@4.4.3 but none was installed.
npm WARN ionic-angular@3.6.1-201709261757 requires a peer of @angular/compiler-cli@4.4.3 but none was installed.
npm WARN ionic-angular@3.6.1-201709261757 requires a peer of @angular/core@4.4.3 but none was installed.
npm WARN ionic-angular@3.6.1-201709261757 requires a peer of @angular/forms@4.4.3 but none was installed.
npm WARN ionic-angular@3.6.1-201709261757 requires a peer of @angular/http@4.4.3 but none was installed.
npm WARN ionic-angular@3.6.1-201709261757 requires a peer of @angular/platform-browser@4.4.3 but none was installed.
npm WARN ionic-angular@3.6.1-201709261757 requires a peer of @angular/platform-browser-dynamic@4.4.3 but none was installed.
npm WARN ionic-angular@3.6.1-201709261757 requires a peer of rxjs@5.4.3 but none was installed.
npm WARN ionic-angular@3.6.1-201709261757 requires a peer of zone.js@0.8.17 but none was installed.
npm WARN benjohansen No description
npm WARN benjohansen No repository field.
npm WARN benjohansen No README data
npm WARN benjohansen No license field.

I did: $ ionic --version
3.12.0

any help, thanks


#2

Ok, got answer from support.

I was running this like it was a global install,

$ npm install ionic-angular@nightly --save

when this is actually project npm
so when i ran it in the project forlder it worked.


#3

Installing with sudo is a bad idea, esp if you’re installing nightly builds, which may not be stable. Unless you already have a solidly working configuration, separately partitioned, I’d recommend working with stable npm, stable NodeJS, stable Ionic. Otherwise, you might find yourself going down all kinds of rabbit holes.


#4

Thanks for response. I got it now