yo backbone [appname] no longer scaffolds a backbone project
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.
I have exactly the same problem after installing yeoman/generator-backbone on a new machine this evening!
Still failed to reproduce on Ubuntu. Are you guys on Mac?
@revathskumar I am on OS X Mavericks 10.9.3, yes.
I'm on ubuntu 14.04 node v0.10.29 yo v1.2.0
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...
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.
Now I am able to reproduce the issue. Working on the fix.
Please try to install generator-mocha from github.
npm install -g yeoman/generator-mocha
Lemme know whether it solves the issue.
Yep. It's working for me now. :thumbsup:
@sethgho Whether it installs the bower and npm modules ?
@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.
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
I am also having this problem.
OSX 10.9.2 node 0.10.29 yo 1.2.0 generator-backbone 0.3.0
@qbunt It looks like the generator-mocha is not installed successfully.
@oakley808 @bboydGensler Did you guys tried npm install -g yeoman/generator-mocha
Installing the generator-mocha solves the issue, but it's required to issue : bower install & npm install manually ...
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.
Having the same issue
OS X 10.9.3 node v0.10.29 npm 1.4.14 yo 1.2.0
@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.
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.
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.