Ivan More Flores
Ivan More Flores

Reputation: 117

I do not recognize the command "ionic"

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

enter image description here

enter image description here

Upvotes: 1

Views: 1693

Answers (2)

Vinod Gehlot
Vinod Gehlot

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

Sampath
Sampath

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.

See this too.

Upvotes: 0

Related Questions