i just update my ionic and cordova version and i got weird issue. in specific folders i got
ionic' is not recognized as an internal or external command
but when i try in other different folders i don't get this issue as you can see
C:Usersadirz>ionic -v
2.1.18C:Usersadirz>cd myapps
C:Usersadirzmyapps>ionic -v
'ionic' is not recognized as an internal or external command,
operable program or batch file.C:Usersadirzmyapps>
I tried to reinstall the node, ionic and cordova and get the same problem.
I expect this relates to this:
first:
npm uninstall -g ionic cordova
then:
npm install -g ionic
npm install -g cordova
i am still having the same problema fter uninstalling and installing
check whether npm has set in the environment variable of your system or not
Check if the configuration is broken or not. the update might have installed it in the wrong place.
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
I was facing the same issue. I have tried all the options mention on above thread but didn't resolve the issue.
I am using Windows 10 Home & previously working fine, It might happen due to installing in different logins.
below are the steps are taken to resolve the issue.
After that test, It works fine with any directory.
Seems Ionic was not installed Globally.
Do the following to resolve, and you will be able to run ionic command any where:
After that test, it works fine with all directory.
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
Check if the configuration is broken or not. the update might have installed it in the wrong place.
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
thanks , it works,
Just do: npm config set prefix
And npm install -g ionic cordova
I was facing the same issue. I have tried all the options mention on above thread but didn't resolve the issue.
I am using Windows 10 Home & previously working fine, It might happen due to installing in different logins.below are the steps are taken to resolve the issue.
- CMD run as Administrator and npm uninstall -g ionic cordova
- Shutdown the system, not restarted
- Start/Boot system after sometime, removed all from TEMP folder.
- Installed the latest version of NodeJS as Administrator
- Open CMD as Administrator and updated npm install -g npm
- npm install -g ionic
- npm install -g cordova
After that test, It works fine with any directory.
This thing worked for me. I guess I tried all the steps before expect step 2. Shutting it down i guess somehow deleted the temp folder and it worked! Thank you so much!!!
I am getting this error. how do i solve this>
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
ionic serve
I was facing the same issue. I have tried all the options mention on above thread but didn't resolve the issue.
I am using Windows 10 Home & previously working fine, It might happen due to installing in different logins.below are the steps are taken to resolve the issue.
- CMD run as Administrator and npm uninstall -g ionic cordova
- Shutdown the system, not restarted
- Start/Boot system after sometime, removed all from TEMP folder.
- Installed the latest version of NodeJS as Administrator
- Open CMD as Administrator and updated npm install -g npm
- npm install -g ionic
- npm install -g cordova
After that test, It works fine with any directory.
Thanks it works !!!
Most helpful comment
I was facing the same issue. I have tried all the options mention on above thread but didn't resolve the issue.
I am using Windows 10 Home & previously working fine, It might happen due to installing in different logins.
below are the steps are taken to resolve the issue.
After that test, It works fine with any directory.