I am a student and I just started with ionic today. I have no experience with the command line, so I'm pretty much here.
When I try to run the basic template (tabs) with
sudo ionic platform add ios sudo ionic build ios sudo ionic emulate ios
(they do not work without sudo). the latter produces this in magazines (among other things above):
** BUILD SUCCEEDED ** No target specified for emulator. Deploying to iPhone-6 simulator An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159): Invalid device state An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159): Invalid device state ENOENT: no such file or directory, stat '/Users/Dylan/Library/Logs/CoreSimulator/D0923A6C-7738-41BA-8134-ED747069991A/system.log' Error code 1 for command: ios-sim with args: launch,/Users/Dylan/myApp/platforms/ios/build/emulator/myApp.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--stderr,/Users/Dylan/myApp/platforms/ios/cordova/console.log,--stdout,/Users/Dylan/myApp/platforms/ios/cordova/console.log,--exit Error: /Users/Dylan/myApp/platforms/ios/cordova/run: Command failed with exit code 2
I saw several unresolved messages with the same errors, but they did not get anywhere. This may be due to these following features:
When running sudo npm install -g cordova ionic I get this warning:
npm WARN deprecated npmconf@2.1.2 : this package has been reintegrated into npm and is now out of date with respect to npm
Also, after that, if I try to run ionic , I get a -bash: ionic: command not found error, but if I run sudo ionic , then it will load a whole bunch of things into the console. Could this be a bug with security changes in El Capitan?
Thanks for your help in advance.