$ cd to the location of the project
$ npm install -g ionic@latest
$ sudo npm install
$ ionic serve
Simulator testing You can also test right in the simulator using the cordova commands from the previous chapter. For example, to test in the iOS simulator, run:
$ ionic cordova build ios
$ ionic cordova emulate ios