I just started using ionic. I did sudu npm install -g cordova ionic gulp bower and then did ionic start myApp tabs. Its creating a folder with name myApp and then creating a folder named “ionic-app-base-master” and a file named “ionic.project”.
Can you please let me know if this is expected behavior.
I did cd myApp and then cd ionic-app-base-master and did ionic platform add ios. which i ran on emulator. It shows blank app.
Can you start a new one like ionic start myAppAgain tabs and capture all the output to a file including an ls of the directory that is created ? Then post it here?
Can y’all try updating Ionic CLI just to make sure that is not the problem?
> sudo npm update -g ionic
You should get something like this with a proper “tabs” app:
JN-MBP:ionicSamples jn$ ionic start forum3205_cli_issues tabs
Running start task...
Creating Ionic app in folder /Users/jn/Documents/Apps/ionicSamples/forum3205_cli_issues based on tabs project
DOWNLOADING: https://github.com/driftyco/ionic-app-base/archive/master.zip
DOWNLOADING: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
Initializing cordova project.
Fetching plugin "org.apache.cordova.device" via plugin registry
Fetching plugin "org.apache.cordova.console" via plugin registry
Your Ionic project is ready to go!
Some quick tips:
* cd into your project: $ cd forum3205_cli_issues
* Add a platform (ios or Android): ionic platform add ios [android]
Note: iOS development requires OS X currently
See the Android Platform Guid for full Android installation instructions: https://cordova.apache.org/docs/en/3.4.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide
* Build your app: ionic build [platform]
* Simulate your app: ionic emulate [platform]
* Run your app on a device: ionic run [platform]
* Develop in the browser with live reload: ionic serve
For more help, visit the Ionic docs: http://ionicframework.com/docs
JN-MBP:ionicSamples jn$ cd forum3205_cli_issues
JN-MBP:forum3205_cli_issues jn$ ls -la
total 48
drwxr-xr-x 13 jn staff 442 May 1 07:29 .
drwxr-xr-x 35 jn staff 1190 May 1 07:29 ..
-rw-r--r-- 1 jn staff 14 May 1 07:29 .gitignore
-rw-r--r-- 1 jn staff 2024 May 1 07:29 README.md
-rw-r--r-- 1 jn staff 810 May 1 07:29 config.xml
-rw-r--r-- 1 jn staff 620 May 1 07:29 gulpfile.js
drwxr-xr-x 4 jn staff 136 May 1 07:29 hooks
-rw-r--r-- 1 jn staff 89 May 1 07:29 ionic.project
-rw-r--r-- 1 jn staff 253 May 1 07:29 package.json
drwxr-xr-x 3 jn staff 102 May 1 07:29 platforms
drwxr-xr-x 5 jn staff 170 May 1 07:30 plugins
drwxr-xr-x 3 jn staff 102 May 1 07:29 scss
drwxr-xr-x 11 jn staff 374 May 1 07:29 www
The thing seems to come from one promise never resolved for the fetch of the https://github.com/driftyco/ionic-app-base/archive/master.zip on the ionic.js fetchRepo the promise isn’t resolved, the event ‘close’ never happens.
with this the start.js starts the var repoUrl = self._getStarterUrl(repoName); but never reaches the next Ionic.fetchRepo for the requested template (tabs in this case).
Migrating from windows to mac now gives me this issue. Never had any trouble with this using windows. And tried it on a different mac with no complains. It thus seems to be very system specific. Any help on solving it would be very much appreciated.
MacBook:Desktop tobias$ ionic info
Your system information:
OS: Mac OS X Yosemite
Node Version: v0.12.0
Cordova CLI: 4.2.0
Ionic CLI Version: 1.3.8
Xcode version: Xcode 6.1.1 Build version 6A2008a
ios-sim version: 3.1.1
MacBook:Desktop tobias$ ionic start app tabs
Creating Ionic app in folder /Users/tobias/Desktop/app based on tabs project
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s
MacBook:Desktop tobias$ cd app/ && ls -l
total 0
drwxr-xr-x 12 tobias staff 408 10 feb 16:23 ionic-app-base-master
MacBook:app tobias$ cd ionic-app-base-master/ && ls -l
total 40
-rw-r--r-- 1 tobias staff 1020 10 feb 16:23 README.md
-rw-r--r-- 1 tobias staff 126 10 feb 16:23 bower.json
-rw-r--r-- 1 tobias staff 1012 10 feb 16:23 config.xml
-rw-r--r-- 1 tobias staff 1353 10 feb 16:23 gulpfile.js
drwxr-xr-x 4 tobias staff 136 10 feb 16:23 hooks
-rw-r--r-- 1 tobias staff 356 10 feb 16:23 package.json
drwxr-xr-x 3 tobias staff 102 10 feb 16:23 scss
drwxr-xr-x 5 tobias staff 170 10 feb 16:23 www
Finally got it working with the help of a different post by downgrading node to v0.10.32. After this reinstalling cordova and ionic with nom than solved all the issues.