-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current Working Directory is not Cordova-based project. #2213
Comments
Is your working directory the one with the |
Yes, I have tried pretty much every solution from Stackoverflow as well as from Ionic forums and the problem stays. What annoys me the most is that it WAS actually working. No idea what i did wrong. Now it doesn't even manage to install the cordova plugins. |
Are you able to run just cordova without ionic? Exactly what commands are you running? Are you on windows, ubuntu, OSX? |
I am running Win7/64bit/. Yes, I am able to run cordova. I started an app with phonegap before and it was running just fine. I just tried to create a project only with cordova and worked fine. I am following Ionic homepage and I already tried to install/uninstall globally both ionic and cordova a couple of times. But when I try to $ ionic start myApp I end up without the plugins and with an error "Current ...bla bla...cordova-based project". |
@dexteriti hey there! So just curious, do you have git setup on your machine? |
@mhartington Hi, Mike, Yes, I do. What am I doing wrong? |
@dexteriti so I did some research and wasn't able to come up with a reason for why this happened.
Did I miss anything? |
@mhartington Thank you for your response. I had cordova installed and I checked the version (3.5.0) then continued to install ionic. Started with creating tabs app and tried to emulate it when I had to wait a lot for actual emulation to run. I went to download the Genymotion. Next time when I tried to run under android I end up having the error. As I wasn't sure if this is related to cordova or Ionic, so I tried to run another project when I again had the same problem. The last try (many times last try) was actually globally uninstaling cordova and installing it again. Then creating another project and again ended with the error. I haven't tried to update cordova as their latest official version is the same as mine. If that helps, first time I was able to install Ionic with plugins, but with the continuing installations plugin installation failed and I had to do it remotely. One think is for sure, if I follow the walkthrough from ionic website I am having the error. Thank you again. |
And now for every : ionic command I end up with an error about "Current working directory is not a Cordova-based project". |
Hmm, any chance you could provide the follow version numbers? $ node -v
$ ionic -v
$ gulp -v
$ npm -v |
nove -v --- 0.10.30 |
What command prompt or shell are you running on Windows? |
I am using windows 7 cmd and just tried with Git Bash. Same result. Crushes when it tries to initialize cordova project. |
Could you post the ouput of |
C:\Projects\App - cmd Same in git bash. |
As I am sure this is quite annoying for you, I will try to do it all over again (last time hopefully) and I'll post the result step by step. |
Here is what I am doing:
|
@dexteriti Can you try running I had a Windows user of my generator getting a Might not be what you're experiencing but thought I'd check! |
HURRAY! Thank you, @diegonetto!
Stupid me, obviously and thank you everyone for your help. |
Hurray! 👏 |
👍 |
I am having the same exact problem. Except my error is this Nates-MacBook-Pro:todoapp TheRainmaker$ cordova create . This is happening on the kitchen sink download from Ionic and on one other demo I downloaded. But all my other projects and demos are working just fine. I assume this is an easy fix? But if anyone could help me out it would be much appreciated. |
@nathanieldavis I don't believe this is related, however your problem should be easy to solve. I would suggest posting your issue on our forum. Also, have a look at this forum thread as it may help setting up the kitchen sink demo. |
Thanks! |
Updated cordova. [x]
Inside the project folder [x]
Error still exists. Please give me solution to this.
The text was updated successfully, but these errors were encountered: