-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sage: "Error: libsass
bindings not found. Try reinstalling node-sass
"
#1309
Comments
Just encountered this problem too. Tried @digitaldreamd's suggestion which wouldn't work. Every time I removed the After running following: Error output: [14:51:39] 'styles' errored after 8.75 s
[14:51:39] Error: `libsass` bindings not found. Try reinstalling `node-sass`?
at getBinding (/var/www/clients/xxxxxxxx.com.au/wp-content/themes/build-sage/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:21:11)
at Object.<anonymous> (/var/www/clients/xxxxxxx.com.au/wp-content/themes/build-sage/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:181:23)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/var/www/clients/xxxxxxxx.com.au/wp-content/themes/build-sage/node_modules/gulp-sass/index.js:3:17)
at Module._compile (module.js:456:26) My package.json: {
"name": "sage",
"version": "8.0.0",
"author": "Ben Word <ben@benword.com>",
"homepage": "http://roots.io/sage/",
"private": true,
"repository": {
"type": "git",
"url": "git://github.com/roots/sage.git"
},
"bugs": {
"url": "https://github.com/roots/sage/issues"
},
"licenses": [
{
"type": "MIT",
"url": "http://opensource.org/licenses/MIT"
}
],
"scripts": {
"build": "bower install && gulp",
"jshint": "gulp jshint",
"jscs": "jscs gulpfile.js assets/scripts/*.js"
},
"engines": {
"node": ">= 0.10.0"
},
"devDependencies": {
"asset-builder": "^0.4.0",
"browser-sync": "^2.0.0-rc9",
"del": "^1.1.1",
"gulp": "^3.8.10",
"gulp-changed": "^1.1.0",
"gulp-concat": "^2.4.3",
"gulp-flatten": "0.0.4",
"gulp-if": "^1.2.5",
"gulp-imagemin": "^2.0.0",
"gulp-install": "^0.2.0",
"gulp-jshint": "^1.8.4",
"gulp-less": "^2.0.1",
"gulp-load-plugins": "^0.8.0",
"gulp-pleeease": "^1.1.0",
"gulp-plumber": "^0.6.6",
"gulp-rename": "^1.2.0",
"gulp-rev": "^3.0.0",
"gulp-sass": "^1.3.2", //Caret keeps inserting itself after npm install command
"gulp-sourcemaps": "^1.3.0",
"gulp-uglify": "^1.0.1",
"imagemin-pngcrush": "^4.0.0",
"jshint-stylish": "^1.0.0",
"lazypipe": "^0.2.2",
"merge-stream": "^0.1.7",
"node-sass": "^2.0.0-beta",
"traverse": "^0.6.6",
"wiredep": "^2.1.0",
"yargs": "^2.1.1"
}
} Any pointers to stop that Running: NPM 1.4.28, Node v0.10.36, Ubuntu 14.10, Vagrant 1.7.2 |
@digitaldreamd looking into this. Tangentially related to: #1311 # don't do this
sudo npm install --save-dev gulp-sass I can try to break down why you are having trouble:
|
@drawcard I would also do
to update npm As @austinpray said if you have been using sudo with npm you will probably run into problems down the line. https://docs.npmjs.com/getting-started/fixing-npm-permissions |
Cheers for that information @digitaldreamd & @austinpray 👍 I did the following:
And it looks like the compile went OK! |
I encounted problems again switching from LESS to SASS: [05:13:22] Using gulpfile /var/www/clients/xxxxxxxx.com.au/wp-content/themes/build-sage/gulpfile.js
[05:13:22] Starting 'clean'...
[05:13:22] Finished 'clean' after 5.82 ms
[05:13:22] Starting 'default'...
[05:13:22] Starting 'styles'...
[05:13:35] 'styles' errored after 13 s
[05:13:35] Error: `libsass` bindings not found. Try reinstalling `node-sass`?
at getBinding (/var/www/clients/xxxxxxxx.com.au/wp-content/themes/build-sage/node_modules/node-sass/lib/index.js:21:11)
at Object.<anonymous> (/var/www/clients/xxxxxxxx.com.au/wp-content/themes/build-sage/node_modules/node-sass/lib/index.js:211:23)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/var/www/clients/xxxxxxxx.com.au/wp-content/themes/build-sage/node_modules/gulp-sass/index.js:3:17)
at Module._compile (module.js:456:26)
[05:13:35] Finished 'default' after 13 s But I ran the following which cleared it up: |
@drawcard I'm going to try to help get a new version of node-sass out the door: sass/node-sass#602 (comment) |
Thanks Austin! I'm sure that will help out a lot :) |
I was able to get it to install under 0.12 by compiling it manually. You need GCC and stuff. export SKIP_SASS_BINARY_DOWNLOAD_FOR_CI=true
npm install |
@drawcard |
after ran |
I was using newer version of node and npm while getting this error. But it has already been mentioned in moodle site as |
I think node-sass depends on gulp-sass. If I understand correctly, some brilliant mind decided to keep the package name the same for major versions (must be logical somehow). I use node 4.6.2 and that worked for me. |
I got this error when running gulp in sage after npm install.
Not sure if this is relevant to others, or the correct way to fix it. I fixed gulp-sass to the specified version in sage package.json. ie:
"gulp-sass": "^1.2.4",
to
"gulp-sass": "1.2.4",
Then removed gulp-sass from node_modules and re-ran npm install. Gulp runs fine now.
Node v0.10.32
NPM Latest
Ubuntu 14.10
The text was updated successfully, but these errors were encountered: