Closed chrisvoncsefalvay closed 10 years ago
After your mkdir test
can you run ls -la
and provide the output please?
@octowombat can you verify if you're still experiencing this issue?
This is now resolved after fetching the latest version.
This issue is still happening even after running an npm update on the generator. I will use ionic cli in the meantime. Just FYI I got this message on a newly created directory:
Please run yo ionic
in an empty directory, or in that of an already existing cordova project.
I accepted all the cordova plugins and Tabs as my project seup.
@fth-tuts can you provide the exact error that gets spit out?
Also run npm list -g --depth=0
and let me know exactly which version of the generator you're on.
Thanks!
If you're still seeing this issue, please try responding no
to SASS and see if the issue remains. Trying to isolate whether it's an issue with this generator or with your Ruby / Compass installation.
@diegonetto This seems to be resolved. I reinstalled the generator globally, created an empty test-ionic-gen directory and ran the yo ionic command. I even selected yes for the SASS option on the first run and it executed fine. grunt serve works as expected. Thank you
@fth-tuts glad to hear everything is in working order! Happy coding my friend :smile:
I had the same issue. Setup: Aptana Webstudio 3 with a newly created empty project.
Julians-MacBook-Pro:IonicYoTest julian$ ls -ahl total 8 drwxr-xr-x 3 julian staff 102B Sep 23 16:42 . drwxr-xr-x 16 julian staff 544B Sep 23 16:42 .. -rw-r--r-- 1 julian staff 370B Sep 23 16:42 .project
This includes a .project file after (re)moving it, the generator does what was expected.
A small fix for this would be very very useful!
@julianbei I re-opened this issue, and will be adding an FAQ section sometime soon, but this is not an issue with the generator. If you want verification, try running cordova create .
inside a new Aptana Webstudio project.
It will fail, because the cordova create
command requires a completely empty directory.
@diegonetto Thanks. This is a helpful information!
Still happens: D:\dev\wamp\www\bbq>npm list -g --depth=0 C:\Users\shlomis\AppData\Roaming\npm ├── bower@1.3.9 ├── cca@0.4.0 ├── cordova@4.0.0 ├── couchbase@1.2.4 ├── generator-angular@0.9.8 ├── generator-angular-fullstack@2.0.13 ├── generator-ionic@0.6.1 ├── generator-karma@0.8.3 ├── grunt-cli@0.1.13 ├── gulp@3.8.6 ├── ionic@1.2.8 ├── node-gyp@0.13.1 ├── node-xmpp@1.0.0-alpha2 ├── plugman@0.22.4 ├── request@2.34.0 └── yo@1.1.2
D:\dev\wamp\www\bbq>yo [?] What would you like to do? Run the Ionic generator (0.6.1)
Make sure you're in the directory you want to scaffold into. This generator can also be run with: yo ionic () ()
| |/ | ' | |/ | | | (_) | | | | | ( |_|_/|| ||||
[?] Would you like to use Sass with Compass (requires Ruby)? No
Path already exists and is not empty: D:\dev\wamp\www: Skipping cordova create
[?] Which Cordova plugins would you like to include? org.apache.cordova.console, org.apache.cordova.device
[?] Which starter template [T] or example app [A] would you like to use? [T] Side Menu
Install plugins registered at plugins.cordova.io: grunt plugin:add:org.apache.cordova.globalization Or install plugins direct from source: grunt plugin:add:https://github.com/apache/cordova-plugin-console.git
Installing selected Cordova plugins, please wait.
{ name: 'CordovaError',
message: 'Current working directory is not a Cordova-based project.' }
? Please run yo ionic
in an empty directory, or in that of an already existing cordova project.
Any advice?
I did A) Remove the app folder(s) B) Did run npm install -g cordova C) Create the app folder and cd to app folder D) yo ionic
This resolved the problem for me
you have to create the app folder before adding it to your IDE. This is how it works for me...
Another reason for a non empty directory is when you decided to git init
after creating the directory and before yo ionic
. The directory will contain a (hidden) .git file and the non empty directory error will occur.
this should really be fixed it is very annoying
This issue is happening on version 0.7.3?
I still have this problem even after updating.
It seems that when any cordova plugins are included the error happens, when you exclude them the process completes fine
I still have that problem and only @axelingadi 's "fix" worked for me, but that's not the way it's meant to be
Installing ionic via yo, the installer responds:
Installing selected Cordova plugins, please wait. ✗ Please run
yo ionicjsin an empty directory, or in that of an already existing cordova project.
A screencap of the issue: