@Kramsha00 wrote:
I am using ionic v-4. Previously, ionic was working perfectly fine in all folders. But suddenly it stopped working.
Now, if the directory is in local user folder, it works right. See below in image (Blue)
But, if I change the directory to some folder inside the local user folder, then it gives me error: (See below in image (Red)
" ‘ionic’ is not recognized as an internal or external command,
operable program or batch file."
I tried to follow up on some previous questions from different forums and uninstalled node, ionic and cordova. Then I cleared cache and then clean installed everything again using
npm install -g ionic
but still it gives me the same error.
I also tried to change the environment variables to the correct path of npm but no change.
Moreover, I tried using command prompt as an administrator too but still same error.If anyone can suggest me some solution to fix this, I’d be very grateful because I have an ionic exam coming and I need to practice haha
PS. My account is the admin account so run as administrator doesn’t really matter.
Posts: 1
Participants: 1