New Error Found

Hi Guys, i encountered this error while trying to run “ionic serve” in my vs code.

ionic : The term ‘ionic’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

Please what is the solution to this problem? I will really appreciate it guys.

Hi EniolaTade don’t worry I am here to help you,

Just open the NodeJS Command Promt and navigate to inside your project directory and run your command here, it will execute successfully on localhost.

cheers!!

1 Like

Hello, Add your npm path(ex.C:\Users\XXXXX\AppData\Roaming\npm) in environment variable.

1 Like

it worked. thank you very much

Is it correct? or should i name it to something else?

But how do i resolve that error?

Add like this:

1 Like