ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Starter Projects Not Being Fetched

Open mhamel06 opened this issue 12 years ago • 6 comments

When I run ionic start myApp tabs/sidemenu I only get the base project.

➜  blist  ionic start blist sidemenu
Running start task...
Creating Ionic app in folder /Users/mhamel/Development/fun/blist/blist based on sidemenu project

DOWNLOADING: https://github.com/driftyco/ionic-app-base/archive/master.zip
➜  blist  tree blist/ionic-app-base-master/www/
blist/ionic-app-base-master/www/
├── index.html
├── js
│   └── app.js
└── lib
    └── ionic
        ├── css
        │   ├── ionic.css
        │   └── ionic.min.css
        └── fonts
            ├── ionicons.eot
            └── ionicons.svg

5 directories, 6 files

I also noticed that the ionic.bundle.js doesn't seem to be added either.

mhamel06 avatar Apr 23 '14 11:04 mhamel06

Hey @mhamel06 any chance you are behind a proxy?

mlynch avatar Apr 23 '14 15:04 mlynch

No this was on my home network. I threw in a few console.logs to see if it was ever getting to the fetchSeed step and it looks like for some reason it is never getting to the .then promise step here: https://github.com/driftyco/ionic-cli/blob/master/lib/ionic/start.js#L109 The wrapper project is resolving without errors though.

mhamel06 avatar Apr 23 '14 16:04 mhamel06

looking into if it is related to Q

mhamel06 avatar Apr 23 '14 16:04 mhamel06

Nvm, I am using the unstable version of node.js and it looks like for me the writeStream.on('close') event is never getting fired. https://github.com/driftyco/ionic-cli/blob/master/lib/ionic.js#L234 This may only affect people on the unstable version.

mhamel06 avatar Apr 23 '14 17:04 mhamel06

Okay, and I also added proxy support just in case. Closing until we get more information, but to use proxy stuff, use the PROXY env var:

$ PROXY=http://myproxy.com:8081 ionic start what

mlynch avatar Apr 28 '14 17:04 mlynch

Things work now that I switched back to node.js stable. It was that unzip wasn't working properly, so the assets never were unpacked.

mhamel06 avatar May 01 '14 12:05 mhamel06