diegonetto / generator-ionic

Build hybrid mobile apps using the Ionic Framework
MIT License
1.74k stars 336 forks source link

yo ionic unable to scaffold an Ionic Project! #279

Open amandeepmittal opened 7 years ago

amandeepmittal commented 7 years ago

I am trying generator-ionic, followed the usage guidelines in README.md and unable to generate a project for ionic using yo ionic project command. This is the error I am getting even trying out different templates:

$ yo ionic ionic-example-yo

     _-----_     
    |       |    ╭──────────────────────────────────────────╮
    |--(o)--|    │ Update available: 1.8.5 (current: 1.8.4) │
   `---------´   │     Run npm install -g yo to update.     │
    ( _´U`_ )    ╰──────────────────────────────────────────╯
    /___A___\   /
     |  ~  |     
   __'.___.'__   
 ´   `  |° ´ Y ` 

    _             _
   (_)           (_)
    _  ___  _ __  _  ___
   | |/ _ \| '_ \| |/ __|
   | | (_) | | | | | (__
   |_|\___/|_| |_|_|\___|

? Would you like to use Sass with Compass (requires Ruby)? No
? Which Cordova plugins would you like to include? (Press <space> to select)org.apache.cordova.device, org.apache.cordova.console, com.ionic.keyboard
? Which starter template would you like to use? Blank
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)
iagocavalcante commented 7 years ago

Whats your version of nodejs ?

amandeepmittal commented 7 years ago

@iagocavalcante I am using v6.9.4.

iagocavalcante commented 7 years ago

try with NodeJS 4.6.0, i saw something like in this issue https://github.com/ttezel/twit/issues/300