The ionic app depends on the Ionic and cordova packages installed globally from npm. To get them run:
npm install -g ionic cordova
Pro tip: for faster installs you should use yarn. To install it run:
npm install -g yarn
and then to install the dependencies run
yarn global add ionic cordova
To run the app simply run:
ionic serve