I have a git repo for my Ionic 2 project. I am building on my Windows machine be default.
I would like to build this app on OSX and have cloned the project onto my Mac.
What commands do I need to run to get this going? Currently I am trying the following and I am getting the following error when building…
Running command: /Users/ct14/Development/Git/app-ionic-2/hooks/after_prepare/010_add_platform_class.js /Users/ct14/Development/Git/app-ionic-2
Error: spawn EACCES
git clone blah blah
ionic platform add ios
ionic plugin add cordova-plugin-geolocation
ionic build ios
Any pointers? Cheers!
Use sudo on all your commands! This will fix your problem
By my understanding, sudo should not be required for project work (but is required for the npm install -g commands), so if I can avoid this, I will.
(edit, for what it’s worth, it doesn’t fix it)
Just clone project directory and make sure you have installed latest Ionic CLI
and while running ionic commands if you face “Error: spawn EACCES” error then run following command or use GUI to set read&write permission to project directory and all sub-directories,
$ chmod -R +rw mydir
now try running ionic commands and if still you face same error then run above command and ionic commands with sudo.
In the end I had to go with creating a new shell project on the mac and then copying across the config.xml file and the app, www and resources folders.
Not the end of the world, just wondered if I had missed something