Reputation: 361
When trying to build and run an ionic project, it fail silently (no ouput) without building the project or running the simulator.
Zeeshans-MBP:my-reddit zeeshansabri11$ ionic build iOS
Zeeshans-MBP:my-reddit zeeshansabri11$ ionic emulate ios
System Details: Cordova CLI: 5.3.3 Gulp version: CLI version 3.9.0 Gulp local: Ionic Version: 1.1.0 Ionic CLI Version: 1.7.7 Ionic App Lib Version: 0.6.3 ios-deploy version: 1.8.2 ios-sim version: 5.0.3 OS: Mac OS X El Capitan Node Version: v5.0.0 Xcode version: Xcode 7.1 Build version 7B91b
Nothing happening. I was getting some errors and check with my Udemy instructor and I have been told that I installed my Node using sudo so I have uninstall complete node, ionic and cordova and then reinstall it now I'm not getting those errors but now Build and Emulate command not doing anything at all.
I have seen similar post on forum but that seems old and recommending downgrade to some really old version not sure if it's still valid.
Btw: I'm new with all Ionic, cordova and node so please go easy on me :)
Upvotes: 1
Views: 673
Reputation: 5270
You need to update/install following packages:
npm install -g ionic cordova ios-deploy
It solved the problem on node v7
node --version
v7.7.4
Upvotes: 0
Reputation: 1728
The problem is that you are using Node 5.0.0 Use Node 4.1.2 instead:
If you installed node via brew, try this:
brew switch node 4.1.2
It's unbelievable that there is no visible error displayed there.
Upvotes: 4