Swiip / generator-gulp-angular

Yeoman generator for AngularJS with GulpJS [UNMAINTAINED next iteration is FountainJS]
http://fountainjs.io
3.72k stars 665 forks source link

Error when using offline #85

Closed cksachdev closed 10 years ago

cksachdev commented 10 years ago

Unable to use it, when I am offline. I get the following error:

Sachdev at plantyourideas in ~/projects/angular4
$ yo gulp-angular

     _-----_
    |       |    .--------------------------.
    |--(o)--|    |         Welcome!         |
   `---------´   '--------------------------'|                          |
    ( _´U`_ )    |     You're using the     |
    /___A___\    |  fantastic generator for |
     |  ~  |     |      scaffolding an      |
   __'.___.'__   | application with Angular |
 ´   `  |° ´ Y ` |         and Gulp!        |
                 '--------------------------'

? You can choose between 2 majors modes: Advanced mode: Ask you for all choices to make while creating your project
? Which version of Angular do you want? 1.2.x (legacy)
? Which Angular's modules would you want to have? (ngRoute and ngResource will be addressed after)
? Would you need jQuery or perhaps Zepto? None (Angular will work on it's own jqLite)
? Would you like to use a REST resource library? None, $http is enough!
? Would you like to use a router ? None
? Which UI framework do you want ? Bootstrap, the most popular HTML, CSS, and JS framework
? Which CSS preprocessor do you want? Sass (Ruby), Original Syntactically Awesome StyleSheets (requires Ruby)
   create gulp/e2e-tests.js
   create gulp/server.js
   create gulp/proxy.js
   create gulp/unit-tests.js
   create src/favicon.ico
   create src/404.html
   create src/assets/images/yeoman.png
   create test/karma.conf.js
   create test/protractor.conf.js
   create test/e2e/main.js
   create src/assets/images/angular.png
   create src/assets/images/browsersync.png
   create src/assets/images/gulp.png
   create src/assets/images/jasmine.png
   create src/assets/images/karma.png
   create src/assets/images/protractor.png
   create src/assets/images/bootstrap.png
   create src/assets/images/ruby-sass.png
   create src/components/navbar/navbar.html
   create src/app/main/main.scss
   create src/app/main/vendor.scss
   create package.json
   create bower.json
   create gulpfile.js
   create gulp/build.js
   create gulp/watch.js
   create gulp/wiredep.js
   create src/index.html
   create src/app/main/main.controller.js
   create src/components/navbar/navbar.controller.js
   create test/unit/main.js
   create src/app/angular4.js
   create .gitignore
   create .editorconfig
   create .jshintrc
   create .bowerrc

I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.

npm WARN package.json angular4@0.0.0 No description
npm WARN package.json angular4@0.0.0 No repository field.
npm WARN package.json angular4@0.0.0 No README data
bower modernizr#2.8.x           cached git://github.com/Modernizr/Modernizr.git#2.8.3
bower modernizr#2.8.x         validate 2.8.3 against git://github.com/Modernizr/Modernizr.git#2.8.x
bower angular#1.2.x             cached git://github.com/angular/bower-angular.git#1.2.26
bower angular#1.2.x           validate 1.2.26 against git://github.com/angular/bower-angular.git#1.2.x
bower bootstrap-sass-official#3.2.x           cached git://github.com/twbs/bootstrap-sass.git#3.2.0+2
bower bootstrap-sass-official#3.2.x         validate 3.2.0+2 against git://github.com/twbs/bootstrap-sass.git#3.2.x
bower angular-mocks#1.2.x                     cached git://github.com/angular/bower-angular-mocks.git#1.2.26
bower angular-mocks#1.2.x                   validate 1.2.26 against git://github.com/angular/bower-angular-mocks.git#1.2.x
bower angular#1.2.x                          ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular.git", exit code of #128

Additional error details:
fatal: Unable to look up github.com (port 9418) (nodename nor servname provided, or not known)

events.js:74
        throw TypeError('Uncaught, unspecified "error" event.');
              ^
TypeError: Uncaught, unspecified "error" event.
    at TypeError (<anonymous>)
    at emit (events.js:74:15)
    at done (/Users/Sachdev/.nvm/v0.10.32/lib/node_modules/generator-gulp-angular/node_modules/yeoman-generator/lib/base.js:318:16)
    at /Users/Sachdev/.nvm/v0.10.32/lib/node_modules/generator-gulp-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:232:13
    at /Users/Sachdev/.nvm/v0.10.32/lib/node_modules/generator-gulp-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:113:21
    at /Users/Sachdev/.nvm/v0.10.32/lib/node_modules/generator-gulp-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:24:16
    at /Users/Sachdev/.nvm/v0.10.32/lib/node_modules/generator-gulp-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:229:17
    at /Users/Sachdev/.nvm/v0.10.32/lib/node_modules/generator-gulp-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:516:34
    at null.<anonymous> (/Users/Sachdev/.nvm/v0.10.32/lib/node_modules/generator-gulp-angular/node_modules/yeoman-generator/lib/actions/install.js:43:7)
    at ChildProcess.emit (events.js:117:20)
Sachdev at plantyourideas in ~/projects/angular4
- -
Sachdev at plantyourideas in ~/projects/angular4
- \
Sachdev at plantyourideas in ~/projects/angular4
- |
Sachdev at plantyourideas in ~/projects/angular4
- \
Sachdev at plantyourideas in ~/projects/angular4
--\
  PID TTY           TIME CMD
93853 ttys000    0:00.25 -bash
95554 ttys001    0:00.07 -bash
Sachdev at plantyourideas in ~/projects/angular4
$
zckrs commented 10 years ago

You need Internet connection to retrieve dependencies.