Reputation: 117
I'm running applications in ionic, everything was fine until I do not know what command I ran that now I do not recognize the "ionic" command. It has something to worry about. And install the command:
npm install -g ionic
Ionic: The term 'ionic' is not recognized as the name of a cmdlet, function, script file or executable program. Check if you typed the name correctly, or if you included a path, check That the path is correct and try again. Online: 1 Character: 1 + Ionic CLI + ~~~~~ + CategoryInfo: ObjectNotFound: (ionic: String) [], CommandNotFoundException + FullyQualifiedErrorId: CommandNotFoundException
Upvotes: 1
Views: 1693
Reputation: 117
It seems look like ionic is not properly installed.You should install using below command globally . So you can access ionic command any where in cmd line not in particular folder.
npm install -g ionic
If you are unable to run this command make sure you have installed latest node.js or npm.
Upvotes: 1
Reputation: 65860
Your path is too long.So just use a simple path like below.
c:\myporject\ionicproj>
Note: You must move into the root folder of the Ionic project too before typing any Ionic CLI
commands.
Upvotes: 0