AbhiRam
AbhiRam

Reputation: 2061

ERROR Sorry! ionic serve can only be run in an Ionic project directory. (when updated visual studio code)

I have updated visual studio code to 1.27.2 version and when I run my existed ionic project using ionic serve command I am getting an error like

[ERROR] Sorry! ionic serve can only be run in an Ionic project directory.

I am trying to resolve this problem for two days can someone help me, please

ionic info:-

[WARN] You are not in an Ionic project directory. Project context may be missing.
cli packages: (C:\Users\krishna.kovilampati\AppData\Roaming\npm\node_modules)
    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0
System:
    Node : v10.0.0
    npm  : 5.6.0
    OS   : Windows 10
Misc:
    backend : pro

Upvotes: 0

Views: 1165

Answers (2)

Maheshvirus
Maheshvirus

Reputation: 7523

Try this steps properly

Ionic Framework Link

Upvotes: 0

rashmi ranjan
rashmi ranjan

Reputation: 388

As per the error you are not in ionic project directory. CLick on File > Open Folder > {{Selet your project Folder}} . After that go to console Type ionic serve. If any issue is comming please do post with a screen shot. it will be helpful

Upvotes: 1

Related Questions