yeoman / generator-backbone

Scaffold out a Backbone.js project
http://yeoman.io
638 stars 159 forks source link

Problem when generator runs "node install", "grunt-sass-0.18.0" does not install #329

Closed gamaralf closed 8 years ago

gamaralf commented 9 years ago

When I run "yo backbone testapp", it fails at the "node install" step.

I edited package.json, changed "grunt-sass-0.18.0" to "grunt-sass-0.17.0" and now "node install" works. But the generated "system" is broken.

derTobsch commented 9 years ago

+1

BernhardBehrendt commented 9 years ago

Having the opposite problem with latest release (0.3.5). Only if I change grunt-sass-0.17.0 to grunt-sass-0.18.0 the npm install gets completed.

Using OSX 10.10.3 and node 0.12.2

arthurvr commented 9 years ago

@derTobsch @gamaralf What node version are you on?

derTobsch commented 9 years ago

v0.12.0

kevva commented 9 years ago

What does it say? It really sounds like a node-sass issue.

derTobsch commented 9 years ago

oh, i have no idea. I created everything by hand after that. So i do not use yeoman anymore :/

lcb931023 commented 9 years ago

+1 with ^0.17 in config

Here's the top part of error log:

node scripts/build.js

`darwin-x64` exists; testing
module.js:355
  Module._extensions[extension](this, filename);
                               ^
Error: Module did not self-register.
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/changbaili/Code/stadiums/webappbackbone/node_modules/grunt-sass/node_modules/node-sass/lib/index.js:181:15)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

Failed at the node-sass@1.2.3 postinstall script 'node scripts/build.js'

Mac OS 10.10.3

node v0.12.2

npm v2.7.4

lcb931023 commented 9 years ago

grunt-sass 1.0.0 is working fiiiiiiine

arthurvr commented 9 years ago

@BernhardBezdek @gamaralf @derTobsch Can you try if this is fixed in master? I think this was fixed in https://github.com/yeoman/generator-backbone/commit/267ad5d475e74ba0568a6b9a292f7aef72d205b2. If y'all can confirm that I'm going to make a new release.

You can try the generator locally by cloning the repo and running npm link. Then yo backbone will start the generator.

BernhardBehrendt commented 9 years ago

@arthurvr it's working when using the master branch

rjcorwin commented 8 years ago

Hi Folks - This is an issue with running node-sass 1.x.x on node 0.12.x. See https://github.com/sass/node-sass/issues/653 ... Whatever is requiring in node-sass needs to bump the version of node-sass to 2.x.x. I see grunt-sass just got bumped on this project (https://github.com/yeoman/generator-backbone/commit/267ad5d475e74ba0568a6b9a292f7aef72d205b2) ... Trying HEAD of master now...

rjcorwin commented 8 years ago

Yup, that fixed it. This issue is the same as #343. And this https://github.com/yeoman/generator-backbone/commit/267ad5d475e74ba0568a6b9a292f7aef72d205b2 fixes it. For folks who can't wait generator-backbone to provide an official release, delete the generator-backbone folder in your global node_modules directory, git clone this repo so you are on the HEAD of master, npm install, and then you should be good to go.

arthurvr commented 8 years ago

Let's close this as fixed on master. Thanks everybody.