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

yo ionic unable to scaffold an Ionic Project!

Open amandeepmittal opened this issue 9 years ago • 3 comments

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)

amandeepmittal avatar Jan 27 '17 10:01 amandeepmittal

Whats your version of nodejs ?

iagocavalcante avatar Feb 14 '17 17:02 iagocavalcante

@iagocavalcante I am using v6.9.4.

amandeepmittal avatar Feb 17 '17 11:02 amandeepmittal

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

iagocavalcante avatar Feb 17 '17 17:02 iagocavalcante