Ionic samples always "blank"


#1

I’m trying to setup the “tabs” based sample following the instructions at: http://ionicframework.com/getting-started/ but I always get the “blank” project.

May it be a bug?


#2

What are you actually typing in your terminal?

$ ionic start myApp tabs

#3

Yes, exactly. This is my console output:

macfab:ionictest fdammassa$ ionic start myApp tabs
Running start task...
Creating Ionic app in folder /Users/fdammassa/ionictest/myApp based on tabs project

DOWNLOADING: https://github.com/driftyco/ionic-app-base/archive/master.zip

But the content of index.html is always:

<body ng-app="starter">
    <ion-pane>
      <ion-header-bar class="bar-stable">
        <h1 class="title">Ionic Blank Starter</h1>
      </ion-header-bar>
      <ion-content class="has-header">
      </ion-content>
    </ion-pane>
  </body>

#4

Interesting. Maybe your version of the CLI is out of date?

mhartington:Desktop mhartington$ ionic start ionicTabs tabs
Running start task...
Creating Ionic app in folder /Users/gcollins/Desktop/ionicTabs 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
Fetching plugin "https://github.com/driftyco/ionic-plugins-keyboard" via git clone
mhartington:Desktop mhartington$ 

I got that and everything downloaded correctly


#5

How can I check that?


#6

You should have this available

$ ionic --version

#7

This is the console output:

Ionic CLI version 1.0.14

Is this the last one?


#8

Hmm yeah it is. Are you on pc or mac? Also, what version of node do you have?

Try this:

$ sudo npm uninstall -g ionic && npm cache clean -g && npm install -g ionic

#9

Your command didn’t solve my issue.

I’m running on a mac with node v0.11.9.


#10

Could be that your version of node is an unstable release? I’m using 0.10.28 with no issues.
Not too sure what the issue is if none of that has resolved it.


#11

Using node 0.10.28 solved the problem!

Thanks a lot!