yeoman / generator-backbone

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

Local Npm module "grunt-sass" not found. Is it installed? #352

Closed joe-liquid closed 9 years ago

joe-liquid commented 9 years ago

When I run the Grunt build task I get "Local Npm module "grunt-sass" not found. Is it installed?". It looks like the NPM module grunt-sass is not installing correctly.

arthurvr commented 9 years ago

Try if deleting the node_modules folder and npm install again fixes it. Likely it was just a one-off installation error.

Be sure that you're on the latest version of npm.

joe-liquid commented 9 years ago

npm ERR! Darwin 13.4.0 npm ERR! argv "node" "/usr/local/bin/npm" "install" npm ERR! node v0.12.6 npm ERR! npm v2.11.2 npm ERR! code ELIFECYCLE

npm ERR! node-sass@1.2.3 postinstall: node scripts/build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@1.2.3 postinstall script 'node scripts/build.js'. npm ERR! This is most likely a problem with the node-sass package, npm ERR! not with npm itself.

joe-liquid commented 9 years ago

That is the debug output when I run npm install.

arthurvr commented 9 years ago

What's your node version?

joe-liquid commented 9 years ago

Node version is v0.12.6 npm version is 2.11.2

Node and npm have been installed via the pkg installer on https://nodejs.org/.

arthurvr commented 9 years ago

The issues with grunt-sass were fixed in https://github.com/yeoman/generator-backbone/commit/267ad5d475e74ba0568a6b9a292f7aef72d205b2. That's not yet released yet, so you will need to bump grunt-sass yourself as seen in the commit.

@sindresorhus @kevva Time to do a new release for this generator?