Rob
Rob

Reputation: 664

NativeScript app won't run on IOS

I am evaluating nativescript, but I cannot get it to work on IOS. It all works well when running on an Android device/emulator though (from a mac).

I set everything up according to the tutorial on the nativescript site, and tried again with a fresh checkout of angular2-seed-advanced.

Any help with this would be greatly appreciated!

Thanks, Rob

Upvotes: 1

Views: 2797

Answers (3)

Rob
Rob

Reputation: 664

Thanks to @Kansen and @tj-vantoll!

I got it solved with both solutions. First installing node via NVM (6.5.0), because as non-root user I had to use sudo to install nativescript globally, during the installation there are some permission errors like "root has no permission to write in /Users/myUser"

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.6/install.sh | bash

nvm install node
nvm use node
# re-open terminal or re-source your bash config e.g.:
source ~/.bashrc

Then do a fresh global install of nativescript (now in new nvm node instance, so cache clean and remove can be omitted, plus no sudo needed because this instance is installed in ~/.nvm/...)

npm i -g nativescript

Upvotes: 1

TJ VanToll
TJ VanToll

Reputation: 12704

My guess is that this is an issue with your npm cache. Can you try the following?

npm cache clean
npm remove -g nativescript
npm remove -g nativescript (yes twice)
npm install -g nativescript

My source is https://github.com/NativeScript/nativescript-cli/issues/1862#issuecomment-227444053, and I’ve ran into this sort of error before and had to reinstall.

Upvotes: 1

Kansen
Kansen

Reputation: 183

I think you should try with Node version below the 6,

Nativescript Manual Setup mention "The latest Node.js 0.10.x, 0.12.x, 4.x or 5.x stable official release"

You can set the node version you want to use with NVM (node version management)

I hope this will fix your issue.

Upvotes: 1

Related Questions