yeoman / generator-bootstrap

Yeoman generator for Bootstrap
http://yeoman.io
186 stars 40 forks source link

On creating a new Bootstrap has no method #13

Closed bnvk closed 11 years ago

bnvk commented 11 years ago

On attempting to create a Bootstrap project I'm getting the following error

~ $ yo bootstrap
In what format would you like the Twitter Bootstrap stylesheets? (css/sass/less) less

/usr/local/share/npm/lib/node_modules/generator-bootstrap/app/index.js:50
  this.install(packages[this.format]);
       ^
TypeError: Object #<Generator> has no method 'install'
    at Generator.bootstrapFiles (/usr/local/share/npm/lib/node_modules/generator-bootstrap/app/index.js:50:8)
    at next (/usr/local/share/npm/lib/node_modules/generator-bootstrap/node_modules/yeoman-generator/lib/base.js:275:18)
    at /usr/local/share/npm/lib/node_modules/generator-bootstrap/node_modules/yeoman-generator/lib/base.js:267:11
    at next (/usr/local/share/npm/lib/node_modules/generator-bootstrap/node_modules/yeoman-generator/lib/util/conflicter.js:52:14)
    at EventEmitter.resolve (/usr/local/share/npm/lib/node_modules/generator-bootstrap/node_modules/yeoman-generator/lib/util/conflicter.js:64:5)
    at /usr/local/share/npm/lib/node_modules/generator-bootstrap/node_modules/yeoman-generator/lib/base.js:262:20
    at Generator.<anonymous> (/usr/local/share/npm/lib/node_modules/generator-bootstrap/app/index.js:37:5)
    at next (/usr/local/share/npm/lib/node_modules/generator-bootstrap/node_modules/yeoman-generator/lib/actions/prompt.js:21:14)
    at /usr/local/share/npm/lib/node_modules/generator-bootstrap/node_modules/yeoman-generator/lib/actions/prompt.js:33:7
    at Interface.onLine (/usr/local/share/npm/lib/node_modules/generator-bootstrap/node_modules/yeoman-generator/node_modules/read/lib/read.js:110:5)
renoirb commented 11 years ago

This is a known issue. Make sure you have the latest version from master. Or worse case, change the

    this.install(...

to

    this.bowerInstall(...

see: https://github.com/yeoman/generator-bootstrap/blob/master/app/index.js#L59 and

Regards :)

sindresorhus commented 11 years ago

Just pushed out 0.1.2. Should fix it.