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

yo backbone [appname] no longer scaffolds a backbone project

Open qbunt opened this issue 12 years ago • 44 comments

Example attempt below:

test⇒ yo backbone myapp
   invoke   mocha:app
   create test/bower.json

     _-----_
    |       |
    |--(o)--|   .--------------------------.
   `---------´  |    Welcome to Yeoman,    |
    ( _´U`_ )   |   ladies and gentlemen!  |
    /___A___\   '__________________________'
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

Out of the box I include HTML5 Boilerplate, jQuery, Backbone.js and Modernizr.
[?] What more would you like? (Press <space> to select)
❯⬢ Twitter Bootstrap for Sass
 ⬡ Use CoffeeScript
 ⬡ Use RequireJs   create test/.bowerrc
   create test/spec/test.js
   create test/index.html

This also appears to stall after scaffolding the test directory, and stops scaffolding entirely, so this generator appears to no longer scaffold effectively at all.

This is on Yeoman v1.2.0, Node v0.10.26. Let me know if you've got questions, happy to help out in any way.

qbunt avatar Jun 26 '14 21:06 qbunt

I have exactly the same problem after installing yeoman/generator-backbone on a new machine this evening!

stefanray avatar Jun 26 '14 22:06 stefanray

Still failed to reproduce on Ubuntu. Are you guys on Mac?

revathskumar avatar Jun 26 '14 22:06 revathskumar

@revathskumar I am on OS X Mavericks 10.9.3, yes.

qbunt avatar Jun 26 '14 23:06 qbunt

I'm on ubuntu 14.04 node v0.10.29 yo v1.2.0

stefanray avatar Jun 26 '14 23:06 stefanray

I'm on Windows 7, tried both in a Git bash and node.js command window. Default "yo backbone" seems to skip the options and start installation (but really, it's waiting on the options selection), and continuing with a default installation puts everything (except .yo-rc.json) into the "test" folder. It's definitely broken, if a default install does that...

CraigWarford avatar Jun 27 '14 20:06 CraigWarford

Having similar problems here. OSX 10.9.3 node 0.10.28 yo 1.2.0 generator-backbone 0.3.0

Reverting generator-backbone to 0.2.8 seems to be generating a complete app.

sethgho avatar Jun 29 '14 09:06 sethgho

Now I am able to reproduce the issue. Working on the fix.

revathskumar avatar Jun 29 '14 17:06 revathskumar

Please try to install generator-mocha from github. npm install -g yeoman/generator-mocha

Lemme know whether it solves the issue.

revathskumar avatar Jun 29 '14 18:06 revathskumar

Yep. It's working for me now. :thumbsup:

sethgho avatar Jun 29 '14 22:06 sethgho

@sethgho Whether it installs the bower and npm modules ?

revathskumar avatar Jun 30 '14 05:06 revathskumar

@revathskumar I just ran your suggestion npm install -g yeoman/generator-mocha and that did not fix the issue for me. I do get the following error message once the Mocha generator's been installed.

test|⇒ yo backbone myapp
Error backbone myapp 

You don't seem to have a generator with the name mocha:app installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 35 registered generators run yo with the `--help` option.

It also looks like the generator is actually installed, just without the Mocha:app subgenerator installed

Backbone
  backbone:all
  backbone:app
  backbone:collection
  backbone:model
  backbone:router
  backbone:view

Backbone-mocha
  backbone-mocha:collection
  backbone-mocha:model
  backbone-mocha:router
  backbone-mocha:view

Let me know if you'd like me to try anything else, happy to help out.

qbunt avatar Jun 30 '14 17:06 qbunt

I'm getting the same results as @qbunt.

OSX 10.9.3 node 0.10.26 yo 1.2.0 generator-backbone 0.3.0

oakley808 avatar Jul 03 '14 19:07 oakley808

I am also having this problem.

OSX 10.9.2 node 0.10.29 yo 1.2.0 generator-backbone 0.3.0

0xbboyd avatar Jul 04 '14 10:07 0xbboyd

@qbunt It looks like the generator-mocha is not installed successfully.

@oakley808 @bboydGensler Did you guys tried npm install -g yeoman/generator-mocha

revathskumar avatar Jul 04 '14 11:07 revathskumar

Installing the generator-mocha solves the issue, but it's required to issue : bower install & npm install manually ...

anthonyray avatar Jul 06 '14 19:07 anthonyray

Even with generator-mocha installed and a fresh install of the backbone generator, I'm still getting my options skipped and the installation of everything into that "test" folder.

troyericg avatar Jul 06 '14 20:07 troyericg

Having the same issue

OS X 10.9.3 node v0.10.29 npm 1.4.14 yo 1.2.0

serv avatar Jul 08 '14 06:07 serv

@revathskumar, your fix worked but like @anthonyray said, I needed to manually run

$ bower install 
$ npm install

It's a bit confusing that the generator fails silently after saying I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself., so I didn't know if it failed or not.

serv avatar Jul 08 '14 07:07 serv

Hmm.... no luck here.

sudo npm install -g yeoman generator-mocha generator-backbone

then

$ yo backbone myapp
Error backbone myapp 

You don't seem to have a generator with the name mocha:app installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 15 registered generators run yo with the `--help` option.

oakley808 avatar Jul 08 '14 14:07 oakley808

Having the same issue on Ubuntu 14.04.

npm install -g yeoman/generator-mocha

Fixed it but also had to run

bower install & npm install

to be able to use Grunt.

amiredry avatar Jul 09 '14 21:07 amiredry