Ionic commands doesn't work within projects


Ionic commands work, but when i type $cd projectname, then ionic commands does not working.

‘ionic’ is not recognized as an internal or external command,
operable program or batch file.

I have tried lot of thing:
npm uninstall cordova ionic
npm cache clean -f
npm install npm -g
npm install @ionic/app-scripts@latest --save-dev
BUT still not solved this problem…

Try your project folder shift + rightclick open command window and try
ionic serve

I haven’t no such option, because I am not administrator

Type in ionic -v and tell us your Ionic version number. Have you tried running npm install ionic -g inside the project folder?

1 Like

I have Ionic CLI 4.1.2
I have tried running npm install ionic -g inside the project folder.
Now IT IS WORKING! Thank You!

1 Like