I am trying to run Ionic Serve through command prompt and have done the following steps:
- Cloned the ionic project from my teams directory
- Installed node JS: it is version 5_10
- Ran
npm install -g ionic cordova
- Selected the cloned directory and typed "ionic serve"
The error I got was "Ionic not recognized as an internal or external command, operable program or batch file"
In other SO posts, a user suggested the following.
First check:
npm config get prefix
In my case It wasn't set to
/usr/local but in /usr/Roaming
So to fix it, use:
npm config set prefix
But this did not work for me, perhaps, I was in the wrong directory.
Can anyone suggest how to get the command Ionic Serve to work?