Skip to content
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

Failing to create Project #33

Closed
darrenahunter opened this issue Mar 31, 2014 · 11 comments
Closed

Failing to create Project #33

darrenahunter opened this issue Mar 31, 2014 · 11 comments

Comments

@darrenahunter
Copy link

Hi Diego

Have just updated your generator (npm install -g generator-ionicjs) the updated yo also then ran 'yo ionicjs' and selected No Compass, added statusbar and splashscreen to plugins then the generator fails with attached screenshot error - basicall no saying not a cordova structure I think - any ideas
screen shot 2014-04-01 at 10 36 53 am

@aaronksaunders
Copy link

Did you add a platform? IOS or android

@darrenahunter
Copy link
Author

Hi

Haven’t got to adding platforms as yet.

This is on the very first run of ‘yo ionicjs’ - it is creating the base project in a clean, empty, freshly created directory

thanks

On 1 Apr 2014, at 10:49 am, aaronksaunders [email protected] wrote:

Did you add a platform? IOS or android


Reply to this email directly or view it on GitHub.

@diegonetto
Copy link
Owner

Thanks for bringing this up. I had this on my TODO list put didn't make an issue for it. As it turns out, this Cordova error occurs when the generator skips the cordova create command (because the directory is non-empty Cordova won't re-init a project) but the directory doesn't contain any Cordova files.

@diegonetto
Copy link
Owner

So for now, mkdir MyAppName && cd $_ then run yo ionicjs in that directory so that the initial cordova create command gets executed.

@diegonetto
Copy link
Owner

I'll add error handling inside the generator for this, so we make it clear that the directory you run yo ionicjs has to be either empty or already contain the .cordova directory.

Check out these lines from the Cordova CLI create command

@darrenahunter
Copy link
Author

many thanks again Diego

I removed and recreated directory and all ok now

Also I thought I created another suggestion on github for you but I can’t find it.

Can you enhance your generator to ask for a Name and ID that can be used on the cordova create command rather than defaulting to the directory name.

ie cordova create com.darrenahunter.myionicapp “My Ionic App”

would save editing files after creation

thanks again

Darren

On 1 Apr 2014, at 10:49 am, aaronksaunders [email protected] wrote:

Did you add a platform? IOS or android


Reply to this email directly or view it on GitHub.

@ravikiranr26
Copy link

yoioni

Can you let me know, how to fix this. deleted and run yo ionic in the new folder too.

@diegonetto diegonetto reopened this Sep 2, 2014
@darrenahunter
Copy link
Author

Hi Ravi

Did you remove the directory completely or just delete files in it - ie. may not have deleted the hidden files / directories.

Also you could try to add a directory ‘.cordova’ in the root as I think that is what cordova expects

cheers
Darren

On 2 Sep 2014, at 11:36 pm, Ravi Kiran R [email protected] wrote:

Can you let me know, how to fix this. deleted and run yo ionic in the new folder too.


Reply to this email directly or view it on GitHub.

@diegonetto
Copy link
Owner

@ravikiranr26 that CERT_UNTRUSTED worries me. As much as I dislike development on Windows, I'm here to help as best I can.

Its an issue with your environment and how Node.js is set up. Try following the discussion on StackOverflow here - http://stackoverflow.com/questions/21752198/error-cert-untrusted-while-creating-cordova-project

Let me know if any of that works. Thanks.

@diegonetto
Copy link
Owner

@ravikiranr26 are you still experiencing this issue on the latest version?

@ravikiranr26
Copy link

Nope, I have resolved it. It was due the firewall.

On Sun, Oct 5, 2014 at 2:54 PM, Diego Netto [email protected]
wrote:

@ravikiranr26 https://github.com/ravikiranr26 are you still
experiencing this issue?

Reply to this email directly or view it on GitHub
#33 (comment)
.

Thanks & Regards
Ravi Kiran .R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants