Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'ionic' is not recognized as an internal or external command

I have successfully installed Ionic. In fact, I have ran it many times already and it worked perfectly fine (on my browser using "ionic serve" command).. But when I have not done "Ionic stuffs" for a few days, and tried doing it this morning, the command is now unrecognized. What is wrong with this?

like image 372
skinny Avatar asked Dec 13 '14 02:12

skinny


1 Answers

answer here

İf "ionic" is installed;

1-Download and upgrade nodejs to latest version. download nodejs

2- run command:

npm uninstall -g ionic

3-Clear these files:

C:\Users\user\AppData\Roaming\npm

C:\Users\user\AppData\Roaming\npm-cache

3-run command:

npm install -g @ionic/cli

İt is done:)

like image 142
motodiver Avatar answered Oct 20 '22 02:10

motodiver