Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

On creating a new Bootstrap has no method #13

Closed
bnvk opened this issue May 13, 2013 · 2 comments
Closed

On creating a new Bootstrap has no method #13

bnvk opened this issue May 13, 2013 · 2 comments

Comments

@bnvk
Copy link

bnvk commented May 13, 2013

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
Copy link

renoirb commented May 13, 2013

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
Copy link
Member

Just pushed out 0.1.2. Should fix it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants