1

I am trying to run Ionic Serve through command prompt and have done the following steps:

  1. Cloned the ionic project from my teams directory
  2. Installed node JS: it is version 5_10
  3. Ran npm install -g ionic cordova
  4. 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?

Dean P
  • 1,841
  • 23
  • 23

0 Answers0