Ionic is not recognized as an internal command

Asked

Viewed 8,860 times

3

I’m trying to create an app with Ionic but this error happens:

'Ionic' is not recognized as an internal command or external, a operable program or a batch file.

  • Are you sure that IONIC is installed on your computer? please do a test on CMD, Ionic -v and see the installed version on your computer.

  • it is interesting to inform operating system so we can help

  • by error message must be windows. The same is happening to me. "Node" and "npm" commands are recognized, but Ionic is not.

  • To install Ionic and Cordova, the latest version of Node is recommended. Uninstall and reinstall it to receive the current version. ;)

3 answers

10

For some reason during npm installation no environment variable was added.

Add inside of Path: C: Users my.user Appdata Roaming npm

2

Check if your machine has installed the latest version of the Java SDK. Without it Ionic cannot create the environment variables at the time of installation.

Done installing the SDK, re-install Ionic.

npm install -g Cordova Ionic

To test the installation.

Ionic -v

1

Make sure you have the Chocolatey installed in your machine. In Node installation itself there is an option to install it!

You can find more on: https://chocolatey.org/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.