Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

libsass bindings not found error on v1.3.1, v1.3.2 #174

Closed
dmbrowne opened this issue Jan 17, 2015 · 52 comments
Closed

libsass bindings not found error on v1.3.1, v1.3.2 #174

dmbrowne opened this issue Jan 17, 2015 · 52 comments

Comments

@dmbrowne
Copy link

I was prevoiusly running gulp-sass 1.2.4(node-sass 1.2.3 dep.) and everything was working perfectly. But I deleted my node_modules folder, and upon npm reinstallation, npm installed gulp-sass 1.3.1(node-sass 2.0.0-beta) as a result of "^1.2.4" in package.json. when i try to compile sass with this version I get the error: "libsass bindings not found. try reinstalling node-sass?"

wordkaround: I simply rolled back to gulp-sass 1.2.4 and its working fine again.

@dlmanning
Copy link
Owner

It sounds like it's somehow pulling in the wrong version of libsass from somewhere. Is it possible you've installed node-sass globally at some point?

@dmbrowne
Copy link
Author

I can confirm i don't have node-sass installed globally.
I checked /home/dbrowne/.nvm/v0.10.33/lib/node_modules and nodesass doesnt exist there.
I also ran npm uninstall -g node-sass to be completely sure and received "not installed"

@dlmanning
Copy link
Owner

I'm unable to reproduce this. Can anyone else?

@kelkes
Copy link

kelkes commented Jan 19, 2015

Same issue here. node-sass not install globally. (OSX 10.10; node installed via brew; latest npm)

Error while installing:

tunneling socket could not be established, cause=connect ECONNREFUSED
tunneling socket could not be established, cause=connect ECONNREFUSED
fs: missing callback Error: ENOENT, unlink '/.../node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64/binding.node'

But i think this error is related to node-sass not gulp-sass.

@konclave
Copy link

Same error on v1.3.2 on Ubuntu. node-sass installed globally and local. And there's no errors when I run node-sass manually.

@dmbrowne dmbrowne changed the title libsass bindings not found error on v1.3.1 libsass bindings not found error on v1.3.1, v1.3.2 Jan 21, 2015
@steffenmllr
Copy link

@kelkes I ran into the same issue on osx, needed to clean my ~./.npmrc and re-login into npm and everything worked again

@dlmanning
Copy link
Owner

@kelkes : Let me know if @steffenmllr's solution works for you because I'm still not able to reproduce the error.

@kelkes
Copy link

kelkes commented Jan 22, 2015

@dlmanning @steffenmllr solution worked for me too.

@dmbrowne
Copy link
Author

.npmrc didnt exist for me. I created it in ~/nvm/v0.10.33/etc/ and added npmrc there (without a dot)
http://stackoverflow.com/questions/17375499/cannot-locate-npmrc-file-after-installing-nodejs-and-npm-on-ubuntu-12-04

Then npm uninstall gulp-sass instead of deleting the node_modules folder, then installed 2.0.0 and its now running fine.

@konclave
Copy link

something wrong with binding in node-sass package inside gulp-sass.
Install node-sass and remove gulp-sass/node_modules/node-sass works.

@adam-beck
Copy link

I'm seeing this same problem in 1.3.3. gulp-sass and node-sass are not installed globally, and when I try running my gulp task I get the error:

Error: libsass bindings not found. Try reinstalling node-sass?

None of the workarounds seemed to help. I don't have a .npmrc folder.

@dmbrowne
Copy link
Author

have you actually performed npm uninstall (instead of just deleting the node_modules) folder?

I got the same problem again on another machine, but didn't need to add a .npmrc. I just performed npm uninstall, then npm install.

@soualid
Copy link

soualid commented Mar 2, 2015

@konclave solution fixed the issue for me.

@manimul
Copy link

manimul commented Mar 10, 2015

@konclave fix worked for me too. Nice one!

@joe-watkins
Copy link

I same issue and had good luck with npm uninstall --save-dev gulp-sass then npm install --save-dev gulp-sass tnx all!

@arnellebalane
Copy link

@adam-beck I'm having the same problems as you with 1.3.3, did you already solve it?

@KevinGimbel
Copy link

Had the same issue and running npm uninstall gulp-sass and then npm install gulp-sass --save-dev solved this one for me.

On the way there I also re-installed node-sass, not sure if this is also related.

@adam-beck
Copy link

@arnellebalane I ended up having node-sass installed globally (if I remember correctly) but it was not in the usual place. I'd recommend blowing out your node_modules folder and checking for any global installs with which. Be careful if you are using nvm as different versions will use different global packages.

I'm sorry if this doesn't make much sense because I don't fully remember how I solved my problem.

@jackjgrimm
Copy link

@joe-watkins Thanks! This fixed my issue!

-Also of note I installed node-sass before this

@Bogdan-Kalynovskyi
Copy link

@joe-watkins, your solution is the only one that worked for me

@dcrockwell
Copy link

Can confirm, @joe-watkins has the working solution.

@mattcodez
Copy link

The @konclave fix worked for me. Initially had node-sass installed at 2.0.1 with grunt-sass, uninstall and reinstalled to 2.1.1.

@viniciusclerod
Copy link

Thanks @joe-watkins, #174 (comment) works!

@wihodges
Copy link

+1 for npm uninstall --save-dev grunt-sass or gulp-sass and then reinstall.

@muhammedbasilsk
Copy link

+1 for @joe-watkins
npm uninstall gulp-sass --save-dev
and then
npm install gulp-sass --save-dev

@drawcard
Copy link

This did the job for me but I also had to run the same procedure for node-sass as well as gulp-sass 👍

npm uninstall gulp-sass node-sass --save-dev
npm install gulp-sass node-sass --save-dev

@paulbhartzog
Copy link

@joe-watkins worked. thx. :-) 👍

@BoykaZhu
Copy link

我试了各种办法。各种卸载各种重装。 finally it works for me .
npm uninstall gulp-sass --save-dev
and then
npm install gulp-sass --save-dev
and then
npm uninstall node-sasss
adn then
npm install node-sass

@joe-watkins thanks.

@JamesMcGuigan
Copy link

Encountered this same issue, but running an automated build process with ansible and vagrant with an nfs file mapping to the host OS, so thought I would document my findings here and for #249 as
google redirected me here.

The following command works, but breaks if you have two different OS's trying to access the same filesystem, as uninstall will remove the build for the other OS
npm uninstall gulp-sass; npm install gulp-sass; npm uninstall node-sass; npm install node-sass;

The solution is to add a postinstall step to your package.json and then make sure npm install is then run separately on both OS's after the uninstall / reinstall
package.json: { "scripts": "postinstall": "npm rebuild gulp-sass node-sass;" }}

There was a second difficulty as npm rebuild wasn't picking up many of the nested dependencies for some reason, so I had to manually add them, one by one, to my project package.json. The rebuild step finally worked, but npm started throwing out many version conflict warnings, but deleting node_modules and doing a clean npm install got npm to map to the correct dependences again
npm install; rm -rvf ./node_modules/; npm install;

Final Solution:

ansible - main.yml

- name: Install nodejs packages specific to our webapps
  npm: path={{ app_dir }}
  tags:
    - update
    - webapp

# https://github.com/dlmanning/gulp-sass/issues/174#issuecomment-96968200
# also needs package.json: { "scripts": "postinstall": "npm rebuild gulp-sass node-sass;" }} due to vagrant running a different OS
# must run "npm install" once on host OS after next run of ansible-playbook
- name: BUGFIX gulp libsass bindings not found error
  command:   "{{ item }}"
  with_items:
    - npm uninstall gulp-sass
    - npm install   gulp-sass
    - npm uninstall node-sass
    - npm install   node-sass
    - touch node_modules/node-sass/node-sass.reinstalled
  args:
    chdir:   "{{ app_dir }}"
    creates: "{{ app_dir }}/node_modules/node-sass/node-sass.reinstalled"
  tags:
    - update
    - webapp

package.json

 {
 "devDependencies": {
    "aws-sign2": "^0.5.0",
    "bl": "^0.9.4",
    "caseless": "~0.10.0",
    "clone": "^1.0.2",
    "combined-stream": "^1.0.3",
    "config-chain": "^1.1.9",
    "forever-agent": "~0.6.0",
    "form-data": "^0.2.0",
    "growly": "^1.2.0",
    "har-validator": "^1.7.1",
    "hawk": "^2.3.1",
    "http-signature": "~0.11.0",
    "inherits": "~2",
    "ini": "^1.3.3",
    "isstream": "^0.1.2",
    "json-stringify-safe": "^5.0.1",
    "mime-types": "~2.0.1",
    "node-uuid": "^1.4.3",
    "nopt": "^3.0.2",
    "oauth-sign": "~0.8.0",
    "once": "^1.3.2",
    "osenv": "^0.1.1",
    "qs": "~3.1.0",
    "semver": "~4.2.0",
    "shellwords": "^0.1.0",
    "stringstream": "0.0.4",
    "tough-cookie": "^1.2.0",
    "tunnel-agent": "^0.4.0",
    "uid-number": "0.0.5",
    "which": "^1.1.1"
  },
  "scripts": {
    "postinstall": "npm rebuild gulp-sass node-sass; # BUGFIX gulp libsass bindings not found error - https://github.com/dlmanning/gulp-sass/issues/174",
  }
}

command line:

vagrant up
npm install; rm -rvf ./node_modules/;
ansible-playbook deploy.yml -i servers/local --tags webapp -v
npm install
gulp

@ghost
Copy link

ghost commented Jul 22, 2015

Is this back? I just encountered this error with "gulp-sass": "^2.0.1" in my package.json and versions 2.0.4 being installed.
node-sass is not my dependency, only gulp-sass

The solution (uninstall and reinstall gulp-sass) worked, but is there no more permanent solution to this?

@Keats
Copy link
Collaborator

Keats commented Jul 22, 2015

But node-sass is a dependency of gulp-sass and it's node-sass that is trying to get libsass.
This issue belongs in the node-sass repo rather than gulp-sass

@ghost
Copy link

ghost commented Jul 22, 2015

From a node-sass issue on this topic (emphasis added):

"This appears to be resolved. TLDR; if you've recently updated your version of node, or node-sass be sure to remove you node_modules dir because we use native extensions. In the future #1017 will prevent or warn about these types of issues."

@MontesinosFernando
Copy link

I have this problem when I run "ionict setup sass". It messes up the look of my project and after that command this is the log information that I get. Can anyone help?

goldenchino@goldenchino-MacBook:~/example$ ionic setup sass
npm WARN deprecated pangyp@2.3.2: use node-gyp@3+, it does all the things
npm WARN prefer global pangyp@2.3.2 should be installed with -g

node-sass@2.1.1 install /home/goldenchino/example/node_modules/node-sass
node scripts/install.js

Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/linux-x64-node-4.0/binding.node

node-sass@2.1.1 postinstall /home/goldenchino/example/node_modules/node-sass
node scripts/build.js

module.js:338
throw err;
^

Error: Cannot find module '/home/goldenchino/example/node_modules/node-sass/node_modules/pangyp/bin/node-gyp'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Function.Module.runMain (module.js:475:10)
at startup (node.js:117:18)
at node.js:951:3
Build failed

node-sass@2.1.1 install /home/goldenchino/example/node_modules/node-sass
node scripts/install.js

node-sass@2.1.1 postinstall /home/goldenchino/example/node_modules/node-sass
node scripts/build.js

module.js:338
throw err;
^

Error: Cannot find module '/home/goldenchino/example/node_modules/node-sass/node_modules/pangyp/bin/node-gyp'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Function.Module.runMain (module.js:475:10)
at startup (node.js:117:18)
at node.js:951:3
Build failed
npm WARN prefer global pangyp@2.3.2 should be installed with -g
example@1.0.0 /home/goldenchino/example
├─┬ bower@1.5.2
│ ├── abbrev@1.0.7
│ ├── archy@1.0.0
│ ├─┬ bower-config@0.6.1
│ │ ├── graceful-fs@2.0.3
│ │ ├── mout@0.9.1
│ │ ├─┬ optimist@0.6.1
│ │ │ ├── minimist@0.0.10
│ │ │ └── wordwrap@0.0.3
│ │ └── osenv@0.0.3
│ ├── bower-endpoint-parser@0.2.2
│ ├─┬ bower-json@0.4.0
│ │ ├── deep-extend@0.2.11
│ │ ├── graceful-fs@2.0.3
│ │ └── intersect@0.0.3
│ ├── bower-logger@0.2.2
│ ├─┬ bower-registry-client@0.3.0
│ │ ├── async@0.2.10
│ │ ├── graceful-fs@2.0.3
│ │ ├── lru-cache@2.3.1
│ │ ├── mkdirp@0.3.5
│ │ ├─┬ request@2.51.0
│ │ │ ├── caseless@0.8.0
│ │ │ ├─┬ hawk@1.1.1
│ │ │ │ ├── boom@0.4.2
│ │ │ │ ├── cryptiles@0.2.2
│ │ │ │ ├── hoek@0.9.1
│ │ │ │ └── sntp@0.2.4
│ │ │ ├── mime-types@1.0.2
│ │ │ └── oauth-sign@0.5.0
│ │ └── request-replay@0.2.0
│ ├─┬ cardinal@0.4.4
│ │ ├── ansicolors@0.2.1
│ │ └─┬ redeyed@0.4.4
│ │ └── esprima@1.0.4
│ ├─┬ chalk@1.1.1
│ │ ├── ansi-styles@2.1.0
│ │ ├── escape-string-regexp@1.0.3
│ │ ├─┬ has-ansi@2.0.0
│ │ │ └── ansi-regex@2.0.0
│ │ ├── strip-ansi@3.0.0
│ │ └── supports-color@2.0.0
│ ├── chmodr@0.1.0
│ ├─┬ configstore@0.3.2
│ │ ├─┬ js-yaml@3.4.2
│ │ │ ├─┬ argparse@1.0.2
│ │ │ │ ├── lodash@3.10.1
│ │ │ │ └── sprintf-js@1.0.3
│ │ │ └── esprima@2.2.0
│ │ ├─┬ mkdirp@0.5.1
│ │ │ └── minimist@0.0.8
│ │ ├── object-assign@2.1.1
│ │ ├─┬ osenv@0.1.3
│ │ │ └── os-tmpdir@1.0.1
│ │ ├── uuid@2.0.1
│ │ └── xdg-basedir@1.0.1
│ ├─┬ decompress-zip@0.1.0
│ │ ├─┬ binary@0.3.0
│ │ │ ├── buffers@0.1.1
│ │ │ └─┬ chainsaw@0.1.0
│ │ │ └── traverse@0.3.9
│ │ ├── mkpath@0.1.0
│ │ ├─┬ readable-stream@1.1.13
│ │ │ ├── core-util-is@1.0.1
│ │ │ ├── isarray@0.0.1
│ │ │ └── string_decoder@0.10.31
│ │ └─┬ touch@0.0.3
│ │ └── nopt@1.0.10
│ ├─┬ deep-sort-object@0.1.1
│ │ └── mout@0.9.1
│ ├─┬ fstream@1.0.8
│ │ └── graceful-fs@4.1.2
│ ├── fstream-ignore@1.0.2
│ ├─┬ github@0.2.4
│ │ └── mime@1.3.4
│ ├─┬ glob@4.5.3
│ │ ├─┬ inflight@1.0.4
│ │ │ └── wrappy@1.0.1
│ │ ├── inherits@2.0.1
│ │ ├─┬ minimatch@2.0.10
│ │ │ └─┬ brace-expansion@1.1.0
│ │ │ ├── balanced-match@0.2.0
│ │ │ └── concat-map@0.0.1
│ │ └── once@1.3.2
│ ├── graceful-fs@3.0.8
│ ├─┬ handlebars@2.0.0
│ │ ├── optimist@0.3.7
│ │ └─┬ uglify-js@2.3.6
│ │ ├── async@0.2.10
│ │ ├── optimist@0.3.7
│ │ └── source-map@0.1.43
│ ├─┬ inquirer@0.8.0
│ │ ├── ansi-regex@1.1.1
│ │ ├─┬ chalk@0.5.1
│ │ │ ├── ansi-styles@1.1.0
│ │ │ ├─┬ has-ansi@0.1.0
│ │ │ │ └── ansi-regex@0.2.1
│ │ │ ├─┬ strip-ansi@0.3.0
│ │ │ │ └── ansi-regex@0.2.1
│ │ │ └── supports-color@0.2.0
│ │ ├─┬ cli-color@0.3.3
│ │ │ ├── d@0.1.1
│ │ │ ├─┬ es5-ext@0.10.7
│ │ │ │ ├── es6-iterator@0.1.3
│ │ │ │ └── es6-symbol@2.0.1
│ │ │ ├─┬ memoizee@0.3.9
│ │ │ │ ├── es6-weak-map@0.1.4
│ │ │ │ ├── event-emitter@0.3.3
│ │ │ │ ├── lru-queue@0.1.0
│ │ │ │ └── next-tick@0.2.2
│ │ │ └── timers-ext@0.1.0
│ │ ├── figures@1.4.0
│ │ ├── lodash@2.4.2
│ │ ├── mute-stream@0.0.4
│ │ ├─┬ readline2@0.1.1
│ │ │ └─┬ strip-ansi@2.0.1
│ │ │ └── ansi-regex@1.1.1
│ │ ├── rx@2.5.3
│ │ └── through@2.3.8
│ ├─┬ insight@0.5.3
│ │ ├── async@0.9.2
│ │ ├─┬ lodash.debounce@3.1.1
│ │ │ └── lodash._getnative@3.9.1
│ │ ├── object-assign@2.1.1
│ │ ├─┬ os-name@1.0.3
│ │ │ ├── osx-release@1.1.0
│ │ │ └─┬ win-release@1.1.1
│ │ │ └── semver@5.0.3
│ │ ├─┬ request@2.63.0
│ │ │ ├─┬ bl@1.0.0
│ │ │ │ └── readable-stream@2.0.2
│ │ │ ├── caseless@0.11.0
│ │ │ ├─┬ combined-stream@1.0.5
│ │ │ │ └── delayed-stream@1.0.0
│ │ │ ├── extend@3.0.0
│ │ │ ├── forever-agent@0.6.1
│ │ │ ├─┬ form-data@1.0.0-rc3
│ │ │ │ └── async@1.4.2
│ │ │ ├─┬ har-validator@1.8.0
│ │ │ │ ├── bluebird@2.10.1
│ │ │ │ ├── commander@2.8.1
│ │ │ │ └─┬ is-my-json-valid@2.12.2
│ │ │ │ ├── generate-function@2.0.0
│ │ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ │ └── is-property@1.0.2
│ │ │ │ └── jsonpointer@2.0.0
│ │ │ ├─┬ hawk@3.1.0
│ │ │ │ ├── boom@2.9.0
│ │ │ │ ├── cryptiles@2.0.5
│ │ │ │ ├── hoek@2.16.3
│ │ │ │ └── sntp@1.0.9
│ │ │ ├── http-signature@0.11.0
│ │ │ ├─┬ mime-types@2.1.7
│ │ │ │ └── mime-db@1.19.0
│ │ │ ├── oauth-sign@0.8.0
│ │ │ └── qs@5.1.0
│ │ └─┬ tough-cookie@0.12.1
│ │ └── punycode@1.3.2
│ ├── is-root@1.0.0
│ ├── junk@1.0.2
│ ├── lockfile@1.0.1
│ ├── lru-cache@2.7.0
│ ├─┬ mkdirp@0.5.0
│ │ └── minimist@0.0.8
│ ├── mout@0.11.0
│ ├── nopt@3.0.4
│ ├── opn@1.0.2
│ ├─┬ p-throttler@0.1.1
│ │ └── q@0.9.7
│ ├─┬ promptly@0.2.0
│ │ └── read@1.0.7
│ ├── q@1.4.1
│ ├─┬ request@2.53.0
│ │ ├── aws-sign2@0.5.0
│ │ ├─┬ bl@0.9.4
│ │ │ └── readable-stream@1.0.33
│ │ ├── caseless@0.9.0
│ │ ├─┬ combined-stream@0.0.7
│ │ │ └── delayed-stream@0.0.5
│ │ ├── forever-agent@0.5.2
│ │ ├─┬ form-data@0.2.0
│ │ │ └── mime-types@2.0.14
│ │ ├─┬ hawk@2.3.1
│ │ │ ├── boom@2.9.0
│ │ │ ├── cryptiles@2.0.5
│ │ │ ├── hoek@2.16.3
│ │ │ └── sntp@1.0.9
│ │ ├─┬ http-signature@0.10.1
│ │ │ ├── asn1@0.1.11
│ │ │ ├── assert-plus@0.1.5
│ │ │ └── ctype@0.5.3
│ │ ├── isstream@0.1.2
│ │ ├── json-stringify-safe@5.0.1
│ │ ├─┬ mime-types@2.0.14
│ │ │ └── mime-db@1.12.0
│ │ ├── node-uuid@1.4.3
│ │ ├── oauth-sign@0.6.0
│ │ ├── qs@2.3.3
│ │ ├── stringstream@0.0.4
│ │ ├── tough-cookie@2.0.0
│ │ └── tunnel-agent@0.4.1
│ ├─┬ request-progress@0.3.1
│ │ └── throttleit@0.0.2
│ ├── retry@0.6.1
│ ├── rimraf@2.2.8
│ ├── semver@2.3.2
│ ├─┬ shell-quote@1.4.3
│ │ ├── array-filter@0.0.1
│ │ ├── array-map@0.0.0
│ │ ├── array-reduce@0.0.0
│ │ └── jsonify@0.0.0
│ ├── stringify-object@1.0.1
│ ├─┬ tar-fs@1.8.1
│ │ ├─┬ pump@1.0.0
│ │ │ └── end-of-stream@1.1.0
│ │ └─┬ tar-stream@1.2.1
│ │ ├── bl@1.0.0
│ │ ├── end-of-stream@1.1.0
│ │ └─┬ readable-stream@2.0.2
│ │ ├── process-nextick-args@1.0.3
│ │ └── util-deprecate@1.0.1
│ ├── tmp@0.0.24
│ ├─┬ update-notifier@0.3.2
│ │ ├── is-npm@1.0.0
│ │ ├─┬ latest-version@1.0.1
│ │ │ └─┬ package-json@1.2.0
│ │ │ ├─┬ got@3.3.1
│ │ │ │ ├─┬ duplexify@3.4.2
│ │ │ │ │ ├── end-of-stream@1.0.0
│ │ │ │ │ └── readable-stream@2.0.2
│ │ │ │ ├── infinity-agent@2.0.3
│ │ │ │ ├── is-redirect@1.0.0
│ │ │ │ ├── is-stream@1.0.1
│ │ │ │ ├── lowercase-keys@1.0.0
│ │ │ │ ├── nested-error-stacks@1.0.1
│ │ │ │ ├── prepend-http@1.0.3
│ │ │ │ ├─┬ read-all-stream@3.0.1
│ │ │ │ │ ├─┬ pinkie-promise@1.0.0
│ │ │ │ │ │ └── pinkie@1.0.0
│ │ │ │ │ └── readable-stream@2.0.2
│ │ │ │ └── timed-out@2.0.0
│ │ │ └─┬ registry-url@3.0.3
│ │ │ └─┬ rc@1.1.1
│ │ │ └── strip-json-comments@0.1.3
│ │ ├── semver-diff@2.0.0
│ │ └── string-length@1.0.1
│ ├── user-home@1.1.1
│ └── which@1.0.9
├─┬ gulp@3.9.0
│ ├── deprecated@0.0.1
│ ├── interpret@0.6.6
│ ├─┬ liftoff@2.2.0
│ │ ├── extend@2.0.1
│ │ ├─┬ findup-sync@0.3.0
│ │ │ └─┬ glob@5.0.14
│ │ │ └── path-is-absolute@1.0.0
│ │ ├── flagged-respawn@0.3.1
│ │ ├── rechoir@0.6.2
│ │ └── resolve@1.1.6
│ ├── minimist@1.2.0
│ ├─┬ orchestrator@0.3.7
│ │ ├── end-of-stream@0.1.5
│ │ ├── sequencify@0.0.7
│ │ └── stream-consume@0.1.0
│ ├── pretty-hrtime@1.0.0
│ ├── semver@4.3.6
│ ├─┬ tildify@1.1.1
│ │ └── os-homedir@1.0.1
│ ├── v8flags@2.0.10
│ └─┬ vinyl-fs@0.3.14
│ ├─┬ defaults@1.0.2
│ │ └── clone@0.1.19
│ ├─┬ glob-stream@3.1.18
│ │ ├── glob@4.5.3
│ │ ├─┬ glob2base@0.0.12
│ │ │ └── find-index@0.1.1
│ │ ├── ordered-read-streams@0.1.0
│ │ ├─┬ through2@0.6.5
│ │ │ └── readable-stream@1.0.33
│ │ └── unique-stream@1.0.0
│ ├── glob-watcher@0.0.6
│ ├─┬ strip-bom@1.0.0
│ │ ├── first-chunk-stream@1.0.0
│ │ └── is-utf8@0.2.0
│ ├─┬ through2@0.6.5
│ │ └── readable-stream@1.0.33
│ └─┬ vinyl@0.4.6
│ └── clone@0.2.0
├─┬ gulp-concat@2.6.0
│ ├─┬ concat-with-sourcemaps@1.0.2
│ │ └─┬ source-map@0.4.4
│ │ └── amdefine@1.0.0
│ └─┬ through2@0.6.5
│ ├── readable-stream@1.0.33
│ └── xtend@4.0.0
├─┬ gulp-minify-css@0.3.13
│ ├── bufferstreams@0.0.2
│ ├─┬ clean-css@3.0.10
│ │ ├── commander@2.5.1
│ │ └── source-map@0.1.43
│ ├── memory-cache@0.0.5
│ ├─┬ through2@0.6.5
│ │ └── readable-stream@1.0.33
│ └─┬ vinyl-sourcemaps-apply@0.1.4
│ └── source-map@0.1.43
├── gulp-rename@1.2.2
├─┬ gulp-sass@1.3.3
│ ├── clone@0.1.19
│ ├── map-stream@0.1.0
│ └─┬ node-sass@2.1.1
│ ├─┬ chalk@0.5.1
│ │ ├── ansi-styles@1.1.0
│ │ ├─┬ has-ansi@0.1.0
│ │ │ └── ansi-regex@0.2.1
│ │ ├── strip-ansi@0.3.0
│ │ └── supports-color@0.2.0
│ ├── cross-spawn@0.2.9
│ ├─┬ gaze@0.5.1
│ │ └─┬ globule@0.1.0
│ │ ├─┬ glob@3.1.21
│ │ │ ├── graceful-fs@1.2.3
│ │ │ └── inherits@1.0.2
│ │ ├── lodash@1.0.2
│ │ └─┬ minimatch@0.2.14
│ │ └── sigmund@1.0.1
│ ├── get-stdin@4.0.1
│ ├─┬ meow@3.3.0
│ │ ├─┬ camelcase-keys@1.0.0
│ │ │ ├── camelcase@1.2.1
│ │ │ └── map-obj@1.0.1
│ │ ├─┬ indent-string@1.2.2
│ │ │ ├── get-stdin@4.0.1
│ │ │ └─┬ repeating@1.1.3
│ │ │ └─┬ is-finite@1.0.1
│ │ │ └── number-is-nan@1.0.0
│ │ └── object-assign@3.0.0
│ ├─┬ mocha@2.3.3
│ │ ├── commander@2.3.0
│ │ ├─┬ debug@2.0.0
│ │ │ └── ms@0.6.2
│ │ ├── diff@1.4.0
│ │ ├── escape-string-regexp@1.0.2
│ │ ├─┬ glob@3.2.3
│ │ │ ├── graceful-fs@2.0.3
│ │ │ └── minimatch@0.2.14
│ │ ├── growl@1.8.1
│ │ ├─┬ jade@0.26.3
│ │ │ ├── commander@0.6.1
│ │ │ └── mkdirp@0.3.0
│ │ ├─┬ mkdirp@0.5.0
│ │ │ └── minimist@0.0.8
│ │ └── supports-color@1.2.0
│ ├── nan@1.9.0
│ ├─┬ npmconf@2.1.2
│ │ ├─┬ config-chain@1.1.9
│ │ │ └── proto-list@1.2.4
│ │ ├── ini@1.3.4
│ │ └── uid-number@0.0.5
│ ├── object-assign@2.1.1
│ ├─┬ pangyp@2.3.2
│ │ ├── glob@4.3.5
│ │ ├─┬ npmlog@1.0.0
│ │ │ ├── ansi@0.3.0
│ │ │ ├─┬ are-we-there-yet@1.0.4
│ │ │ │ └── delegates@0.1.0
│ │ │ └─┬ gauge@1.0.2
│ │ │ └── has-unicode@1.0.0
│ │ ├── request@2.51.0
│ │ └─┬ tar@1.0.3
│ │ └── block-stream@0.0.8
│ ├── replace-ext@0.0.1
│ └─┬ sass-graph@1.3.0
│ ├─┬ commander@2.8.1
│ │ └── graceful-readlink@1.0.1
│ ├── glob@4.5.3
│ └── lodash@2.4.2
├─┬ gulp-util@2.2.20
│ ├─┬ chalk@0.5.1
│ │ ├── ansi-styles@1.1.0
│ │ ├─┬ has-ansi@0.1.0
│ │ │ └── ansi-regex@0.2.1
│ │ ├── strip-ansi@0.3.0
│ │ └── supports-color@0.2.0
│ ├─┬ dateformat@1.0.11
│ │ └── get-stdin@5.0.0
│ ├── lodash._reinterpolate@2.4.1
│ ├─┬ lodash.template@2.4.1
│ │ ├── lodash._escapestringchar@2.4.1
│ │ ├─┬ lodash.defaults@2.4.1
│ │ │ ├── lodash._objecttypes@2.4.1
│ │ │ └── lodash.keys@2.4.1
│ │ ├─┬ lodash.escape@2.4.1
│ │ │ ├─┬ lodash._escapehtmlchar@2.4.1
│ │ │ │ └── lodash._htmlescapes@2.4.1
│ │ │ └─┬ lodash._reunescapedhtml@2.4.1
│ │ │ └── lodash.keys@2.4.1
│ │ ├─┬ lodash.keys@2.4.1
│ │ │ ├── lodash._isnative@2.4.1
│ │ │ ├── lodash._shimkeys@2.4.1
│ │ │ └── lodash.isobject@2.4.1
│ │ ├── lodash.templatesettings@2.4.1
│ │ └─┬ lodash.values@2.4.1
│ │ └── lodash.keys@2.4.1
│ ├── minimist@0.2.0
│ ├─┬ multipipe@0.1.2
│ │ └── duplexer2@0.0.2
│ ├─┬ through2@0.5.1
│ │ ├── readable-stream@1.0.33
│ │ └── xtend@3.0.0
│ └─┬ vinyl@0.2.3
│ └── clone-stats@0.0.1
└── shelljs@0.3.0

Successful npm install
Updated /home/goldenchino/example/www/index.html references to sass compiled css

Ionic project ready to use Sass!

  • Customize the app using scss/ionic.app.scss
  • Run ionic serve to start a local dev server and watch/compile Sass to CSS

/home/goldenchino/example/node_modules/node-sass/lib/index.js:22
throw new Error('libsass bindings not found. Try reinstalling node-sass?');
^

Error: libsass bindings not found. Try reinstalling node-sass?
at getBinding (/home/goldenchino/example/node_modules/node-sass/lib/index.js:22:11)
at Object. (/home/goldenchino/example/node_modules/node-sass/lib/index.js:188:23)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
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. (/home/goldenchino/example/node_modules/gulp-sass/index.js:3:17)
at Module._compile (module.js:434:26)

Error running gulp sass

Exception with (CLI v1.6.4)

Your system information:

Cordova CLI: 5.2.0
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.1.0
Ionic CLI Version: 1.6.4
Ionic App Lib Version: 0.3.8
OS: Distributor ID: elementary OS Description: elementary OS Freya
Node Version: v4.0.0

@Keats
Copy link
Collaborator

Keats commented Sep 23, 2015

It's depending on a old version of gulp-sass which links to an outdated version of node-sass (hence why it couldn't find the bindings).
You can re-install gulp-sass and use the current version and/or do a pr to the ionic people for them to update their deps

@MontesinosFernando
Copy link

Keats, how would I re-install gulp-sass.
npm uninstall gulp-sass; npm install gulp-sass; all from my working directory of my "example" app?

@Keats
Copy link
Collaborator

Keats commented Sep 24, 2015

just add/replace the gulp-sass version in the package.json, rm -rf node_modules and npm install

@MontesinosFernando
Copy link

I get the following after running the npm install command.
npm WARN deprecated pangyp@2.3.2: use node-gyp@3+, it does all the things
npm WARN prefer global pangyp@2.3.2 should be installed with -g

node-sass@2.1.1 install /home/goldenchino/example/node_modules/node-sass
node scripts/install.js

Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/linux-x64-node-4.0/binding.node

node-sass@2.1.1 postinstall /home/goldenchino/example/node_modules/node-sass
node scripts/build.js

module.js:338
throw err;
^

Error: Cannot find module '/home/goldenchino/example/node_modules/node-sass/node_modules/pangyp/bin/node-gyp'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Function.Module.runMain (module.js:475:10)
at startup (node.js:117:18)
at node.js:951:3
Build failed

node-sass@2.1.1 install /home/goldenchino/example/node_modules/node-sass
node scripts/install.js

node-sass@2.1.1 postinstall /home/goldenchino/example/node_modules/node-sass
node scripts/build.js

module.js:338
throw err;
^

Error: Cannot find module '/home/goldenchino/example/node_modules/node-sass/node_modules/pangyp/bin/node-gyp'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Function.Module.runMain (module.js:475:10)
at startup (node.js:117:18)
at node.js:951:3
Build failed
npm WARN prefer global pangyp@2.3.2 should be installed with -g
example@1.0.0 /home/goldenchino/example
├─┬ bower@1.5.3
│ ├── abbrev@1.0.7
│ ├── archy@1.0.0
│ ├─┬ bower-config@0.6.1
│ │ ├── graceful-fs@2.0.3
│ │ ├── mout@0.9.1
│ │ ├─┬ optimist@0.6.1
│ │ │ ├── minimist@0.0.10
│ │ │ └── wordwrap@0.0.3
│ │ └── osenv@0.0.3
│ ├── bower-endpoint-parser@0.2.2
│ ├─┬ bower-json@0.4.0
│ │ ├── deep-extend@0.2.11
│ │ ├── graceful-fs@2.0.3
│ │ └── intersect@0.0.3
│ ├── bower-logger@0.2.2
│ ├─┬ bower-registry-client@0.3.0
│ │ ├── async@0.2.10
│ │ ├── graceful-fs@2.0.3
│ │ ├── lru-cache@2.3.1
│ │ ├── mkdirp@0.3.5
│ │ ├─┬ request@2.51.0
│ │ │ ├── caseless@0.8.0
│ │ │ ├─┬ hawk@1.1.1
│ │ │ │ ├── boom@0.4.2
│ │ │ │ ├── cryptiles@0.2.2
│ │ │ │ ├── hoek@0.9.1
│ │ │ │ └── sntp@0.2.4
│ │ │ ├── mime-types@1.0.2
│ │ │ └── oauth-sign@0.5.0
│ │ └── request-replay@0.2.0
│ ├─┬ cardinal@0.4.4
│ │ ├── ansicolors@0.2.1
│ │ └─┬ redeyed@0.4.4
│ │ └── esprima@1.0.4
│ ├─┬ chalk@1.1.1
│ │ ├── ansi-styles@2.1.0
│ │ ├── escape-string-regexp@1.0.3
│ │ ├─┬ has-ansi@2.0.0
│ │ │ └── ansi-regex@2.0.0
│ │ ├── strip-ansi@3.0.0
│ │ └── supports-color@2.0.0
│ ├── chmodr@0.1.0
│ ├─┬ configstore@0.3.2
│ │ ├─┬ js-yaml@3.4.2
│ │ │ ├─┬ argparse@1.0.2
│ │ │ │ ├── lodash@3.10.1
│ │ │ │ └── sprintf-js@1.0.3
│ │ │ └── esprima@2.2.0
│ │ ├─┬ mkdirp@0.5.1
│ │ │ └── minimist@0.0.8
│ │ ├── object-assign@2.1.1
│ │ ├─┬ osenv@0.1.3
│ │ │ └── os-tmpdir@1.0.1
│ │ ├── uuid@2.0.1
│ │ └── xdg-basedir@1.0.1
│ ├─┬ decompress-zip@0.1.0
│ │ ├─┬ binary@0.3.0
│ │ │ ├── buffers@0.1.1
│ │ │ └─┬ chainsaw@0.1.0
│ │ │ └── traverse@0.3.9
│ │ ├── mkpath@0.1.0
│ │ ├─┬ readable-stream@1.1.13
│ │ │ ├── core-util-is@1.0.1
│ │ │ ├── isarray@0.0.1
│ │ │ └── string_decoder@0.10.31
│ │ └─┬ touch@0.0.3
│ │ └── nopt@1.0.10
│ ├─┬ fstream@1.0.8
│ │ └── graceful-fs@4.1.2
│ ├── fstream-ignore@1.0.2
│ ├─┬ github@0.2.4
│ │ └── mime@1.3.4
│ ├─┬ glob@4.5.3
│ │ ├─┬ inflight@1.0.4
│ │ │ └── wrappy@1.0.1
│ │ ├── inherits@2.0.1
│ │ ├─┬ minimatch@2.0.10
│ │ │ └─┬ brace-expansion@1.1.0
│ │ │ ├── balanced-match@0.2.0
│ │ │ └── concat-map@0.0.1
│ │ └── once@1.3.2
│ ├── graceful-fs@3.0.8
│ ├─┬ handlebars@2.0.0
│ │ ├── optimist@0.3.7
│ │ └─┬ uglify-js@2.3.6
│ │ ├── async@0.2.10
│ │ ├── optimist@0.3.7
│ │ └── source-map@0.1.43
│ ├─┬ inquirer@0.8.0
│ │ ├── ansi-regex@1.1.1
│ │ ├─┬ chalk@0.5.1
│ │ │ ├── ansi-styles@1.1.0
│ │ │ ├─┬ has-ansi@0.1.0
│ │ │ │ └── ansi-regex@0.2.1
│ │ │ ├─┬ strip-ansi@0.3.0
│ │ │ │ └── ansi-regex@0.2.1
│ │ │ └── supports-color@0.2.0
│ │ ├─┬ cli-color@0.3.3
│ │ │ ├── d@0.1.1
│ │ │ ├─┬ es5-ext@0.10.7
│ │ │ │ ├── es6-iterator@0.1.3
│ │ │ │ └── es6-symbol@2.0.1
│ │ │ ├─┬ memoizee@0.3.9
│ │ │ │ ├── es6-weak-map@0.1.4
│ │ │ │ ├── event-emitter@0.3.3
│ │ │ │ ├── lru-queue@0.1.0
│ │ │ │ └── next-tick@0.2.2
│ │ │ └── timers-ext@0.1.0
│ │ ├── figures@1.4.0
│ │ ├── lodash@2.4.2
│ │ ├── mute-stream@0.0.4
│ │ ├─┬ readline2@0.1.1
│ │ │ └─┬ strip-ansi@2.0.1
│ │ │ └── ansi-regex@1.1.1
│ │ ├── rx@2.5.3
│ │ └── through@2.3.8
│ ├─┬ insight@0.7.0
│ │ ├── async@1.4.2
│ │ ├─┬ configstore@1.2.1
│ │ │ ├── graceful-fs@4.1.2
│ │ │ ├── object-assign@3.0.0
│ │ │ ├─┬ write-file-atomic@1.1.3
│ │ │ │ ├── graceful-fs@4.1.2
│ │ │ │ └── slide@1.1.6
│ │ │ └── xdg-basedir@2.0.0
│ │ ├─┬ inquirer@0.10.0
│ │ │ ├── ansi-escapes@1.1.0
│ │ │ ├─┬ cli-cursor@1.0.2
│ │ │ │ └─┬ restore-cursor@1.0.1
│ │ │ │ ├── exit-hook@1.1.1
│ │ │ │ └── onetime@1.0.0
│ │ │ ├── cli-width@1.0.1
│ │ │ ├── lodash@3.10.1
│ │ │ ├─┬ readline2@1.0.1
│ │ │ │ ├─┬ code-point-at@1.0.0
│ │ │ │ │ └── number-is-nan@1.0.0
│ │ │ │ ├── is-fullwidth-code-point@1.0.0
│ │ │ │ └── mute-stream@0.0.5
│ │ │ ├── run-async@0.1.0
│ │ │ └── rx-lite@3.1.2
│ │ ├─┬ lodash.debounce@3.1.1
│ │ │ └── lodash._getnative@3.9.1
│ │ ├── object-assign@4.0.1
│ │ ├─┬ os-name@1.0.3
│ │ │ ├── osx-release@1.1.0
│ │ │ └─┬ win-release@1.1.1
│ │ │ └── semver@5.0.3
│ │ └─┬ request@2.63.0
│ │ ├─┬ bl@1.0.0
│ │ │ └── readable-stream@2.0.2
│ │ ├── caseless@0.11.0
│ │ ├─┬ combined-stream@1.0.5
│ │ │ └── delayed-stream@1.0.0
│ │ ├── extend@3.0.0
│ │ ├── forever-agent@0.6.1
│ │ ├─┬ form-data@1.0.0-rc3
│ │ │ └── async@1.4.2
│ │ ├─┬ har-validator@1.8.0
│ │ │ ├── bluebird@2.10.1
│ │ │ ├── commander@2.8.1
│ │ │ └─┬ is-my-json-valid@2.12.2
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ └── is-property@1.0.2
│ │ │ └── jsonpointer@2.0.0
│ │ ├─┬ hawk@3.1.0
│ │ │ ├── boom@2.9.0
│ │ │ ├── cryptiles@2.0.5
│ │ │ ├── hoek@2.16.3
│ │ │ └── sntp@1.0.9
│ │ ├── http-signature@0.11.0
│ │ ├─┬ mime-types@2.1.7
│ │ │ └── mime-db@1.19.0
│ │ ├── oauth-sign@0.8.0
│ │ └── qs@5.1.0
│ ├── is-root@1.0.0
│ ├── junk@1.0.2
│ ├── lockfile@1.0.1
│ ├── lru-cache@2.7.0
│ ├─┬ md5-hex@1.1.0
│ │ └── md5-o-matic@0.1.1
│ ├─┬ mkdirp@0.5.0
│ │ └── minimist@0.0.8
│ ├── mout@0.11.0
│ ├── nopt@3.0.4
│ ├── opn@1.0.2
│ ├─┬ p-throttler@0.1.1
│ │ └── q@0.9.7
│ ├─┬ promptly@0.2.0
│ │ └── read@1.0.7
│ ├── q@1.4.1
│ ├─┬ request@2.53.0
│ │ ├── aws-sign2@0.5.0
│ │ ├─┬ bl@0.9.4
│ │ │ └── readable-stream@1.0.33
│ │ ├── caseless@0.9.0
│ │ ├─┬ combined-stream@0.0.7
│ │ │ └── delayed-stream@0.0.5
│ │ ├── forever-agent@0.5.2
│ │ ├─┬ form-data@0.2.0
│ │ │ ├── async@0.9.2
│ │ │ └── mime-types@2.0.14
│ │ ├─┬ hawk@2.3.1
│ │ │ ├── boom@2.9.0
│ │ │ ├── cryptiles@2.0.5
│ │ │ ├── hoek@2.16.3
│ │ │ └── sntp@1.0.9
│ │ ├─┬ http-signature@0.10.1
│ │ │ ├── asn1@0.1.11
│ │ │ ├── assert-plus@0.1.5
│ │ │ └── ctype@0.5.3
│ │ ├── isstream@0.1.2
│ │ ├── json-stringify-safe@5.0.1
│ │ ├─┬ mime-types@2.0.14
│ │ │ └── mime-db@1.12.0
│ │ ├── node-uuid@1.4.3
│ │ ├── oauth-sign@0.6.0
│ │ ├── qs@2.3.3
│ │ ├── stringstream@0.0.4
│ │ ├── tough-cookie@2.0.0
│ │ └── tunnel-agent@0.4.1
│ ├─┬ request-progress@0.3.1
│ │ └── throttleit@0.0.2
│ ├── retry@0.6.1
│ ├── rimraf@2.2.8
│ ├── semver@2.3.2
│ ├─┬ shell-quote@1.4.3
│ │ ├── array-filter@0.0.1
│ │ ├── array-map@0.0.0
│ │ ├── array-reduce@0.0.0
│ │ └── jsonify@0.0.0
│ ├── stringify-object@1.0.1
│ ├─┬ tar-fs@1.8.1
│ │ ├─┬ pump@1.0.0
│ │ │ └── end-of-stream@1.1.0
│ │ └─┬ tar-stream@1.2.1
│ │ ├── bl@1.0.0
│ │ ├── end-of-stream@1.1.0
│ │ └─┬ readable-stream@2.0.2
│ │ ├── process-nextick-args@1.0.3
│ │ └── util-deprecate@1.0.1
│ ├── tmp@0.0.24
│ ├─┬ update-notifier@0.3.2
│ │ ├── is-npm@1.0.0
│ │ ├─┬ latest-version@1.0.1
│ │ │ └─┬ package-json@1.2.0
│ │ │ ├─┬ got@3.3.1
│ │ │ │ ├─┬ duplexify@3.4.2
│ │ │ │ │ ├── end-of-stream@1.0.0
│ │ │ │ │ └── readable-stream@2.0.2
│ │ │ │ ├── infinity-agent@2.0.3
│ │ │ │ ├── is-redirect@1.0.0
│ │ │ │ ├── is-stream@1.0.1
│ │ │ │ ├── lowercase-keys@1.0.0
│ │ │ │ ├── nested-error-stacks@1.0.1
│ │ │ │ ├── prepend-http@1.0.3
│ │ │ │ ├─┬ read-all-stream@3.0.1
│ │ │ │ │ ├─┬ pinkie-promise@1.0.0
│ │ │ │ │ │ └── pinkie@1.0.0
│ │ │ │ │ └── readable-stream@2.0.2
│ │ │ │ └── timed-out@2.0.0
│ │ │ └─┬ registry-url@3.0.3
│ │ │ └─┬ rc@1.1.1
│ │ │ └── strip-json-comments@0.1.3
│ │ ├── semver-diff@2.0.0
│ │ └── string-length@1.0.1
│ ├── user-home@1.1.1
│ └── which@1.0.9
├─┬ gulp@3.9.0
│ ├── deprecated@0.0.1
│ ├── interpret@0.6.6
│ ├─┬ liftoff@2.2.0
│ │ ├── extend@2.0.1
│ │ ├─┬ findup-sync@0.3.0
│ │ │ └─┬ glob@5.0.14
│ │ │ └── path-is-absolute@1.0.0
│ │ ├── flagged-respawn@0.3.1
│ │ ├── rechoir@0.6.2
│ │ └── resolve@1.1.6
│ ├── minimist@1.2.0
│ ├─┬ orchestrator@0.3.7
│ │ ├── end-of-stream@0.1.5
│ │ ├── sequencify@0.0.7
│ │ └── stream-consume@0.1.0
│ ├── pretty-hrtime@1.0.0
│ ├── semver@4.3.6
│ ├─┬ tildify@1.1.1
│ │ └── os-homedir@1.0.1
│ ├── v8flags@2.0.10
│ └─┬ vinyl-fs@0.3.14
│ ├─┬ defaults@1.0.2
│ │ └── clone@0.1.19
│ ├─┬ glob-stream@3.1.18
│ │ ├── glob@4.5.3
│ │ ├─┬ glob2base@0.0.12
│ │ │ └── find-index@0.1.1
│ │ ├── ordered-read-streams@0.1.0
│ │ ├─┬ through2@0.6.5
│ │ │ └── readable-stream@1.0.33
│ │ └── unique-stream@1.0.0
│ ├── glob-watcher@0.0.6
│ ├─┬ strip-bom@1.0.0
│ │ ├── first-chunk-stream@1.0.0
│ │ └── is-utf8@0.2.0
│ ├─┬ through2@0.6.5
│ │ └── readable-stream@1.0.33
│ └─┬ vinyl@0.4.6
│ └── clone@0.2.0
├─┬ gulp-concat@2.6.0
│ ├─┬ concat-with-sourcemaps@1.0.2
│ │ └─┬ source-map@0.4.4
│ │ └── amdefine@1.0.0
│ └─┬ through2@0.6.5
│ ├── readable-stream@1.0.33
│ └── xtend@4.0.0
├─┬ gulp-minify-css@0.3.13
│ ├── bufferstreams@0.0.2
│ ├─┬ clean-css@3.0.10
│ │ ├── commander@2.5.1
│ │ └── source-map@0.1.43
│ ├── memory-cache@0.0.5
│ ├─┬ through2@0.6.5
│ │ └── readable-stream@1.0.33
│ └─┬ vinyl-sourcemaps-apply@0.1.4
│ └── source-map@0.1.43
├── gulp-rename@1.2.2
├─┬ gulp-sass@1.3.3
│ ├── clone@0.1.19
│ ├── map-stream@0.1.0
│ └─┬ node-sass@2.1.1
│ ├─┬ chalk@0.5.1
│ │ ├── ansi-styles@1.1.0
│ │ ├─┬ has-ansi@0.1.0
│ │ │ └── ansi-regex@0.2.1
│ │ ├── strip-ansi@0.3.0
│ │ └── supports-color@0.2.0
│ ├── cross-spawn@0.2.9
│ ├─┬ gaze@0.5.1
│ │ └─┬ globule@0.1.0
│ │ ├─┬ glob@3.1.21
│ │ │ ├── graceful-fs@1.2.3
│ │ │ └── inherits@1.0.2
│ │ ├── lodash@1.0.2
│ │ └─┬ minimatch@0.2.14
│ │ └── sigmund@1.0.1
│ ├── get-stdin@4.0.1
│ ├─┬ meow@3.3.0
│ │ ├─┬ camelcase-keys@1.0.0
│ │ │ ├── camelcase@1.2.1
│ │ │ └── map-obj@1.0.1
│ │ ├─┬ indent-string@1.2.2
│ │ │ ├── get-stdin@4.0.1
│ │ │ └─┬ repeating@1.1.3
│ │ │ └── is-finite@1.0.1
│ │ └── object-assign@3.0.0
│ ├─┬ mocha@2.3.3
│ │ ├── commander@2.3.0
│ │ ├─┬ debug@2.0.0
│ │ │ └── ms@0.6.2
│ │ ├── diff@1.4.0
│ │ ├── escape-string-regexp@1.0.2
│ │ ├─┬ glob@3.2.3
│ │ │ ├── graceful-fs@2.0.3
│ │ │ └── minimatch@0.2.14
│ │ ├── growl@1.8.1
│ │ ├─┬ jade@0.26.3
│ │ │ ├── commander@0.6.1
│ │ │ └── mkdirp@0.3.0
│ │ ├─┬ mkdirp@0.5.0
│ │ │ └── minimist@0.0.8
│ │ └── supports-color@1.2.0
│ ├── nan@1.9.0
│ ├─┬ npmconf@2.1.2
│ │ ├─┬ config-chain@1.1.9
│ │ │ └── proto-list@1.2.4
│ │ ├── ini@1.3.4
│ │ └── uid-number@0.0.5
│ ├── object-assign@2.1.1
│ ├─┬ pangyp@2.3.2
│ │ ├── glob@4.3.5
│ │ ├─┬ npmlog@1.0.0
│ │ │ ├── ansi@0.3.0
│ │ │ ├─┬ are-we-there-yet@1.0.4
│ │ │ │ └── delegates@0.1.0
│ │ │ └─┬ gauge@1.0.2
│ │ │ └── has-unicode@1.0.0
│ │ ├── request@2.51.0
│ │ └─┬ tar@1.0.3
│ │ └── block-stream@0.0.8
│ ├── replace-ext@0.0.1
│ └─┬ sass-graph@1.3.0
│ ├─┬ commander@2.8.1
│ │ └── graceful-readlink@1.0.1
│ ├── glob@4.5.3
│ └── lodash@2.4.2
├─┬ gulp-util@2.2.20
│ ├─┬ chalk@0.5.1
│ │ ├── ansi-styles@1.1.0
│ │ ├─┬ has-ansi@0.1.0
│ │ │ └── ansi-regex@0.2.1
│ │ ├── strip-ansi@0.3.0
│ │ └── supports-color@0.2.0
│ ├─┬ dateformat@1.0.11
│ │ └── get-stdin@5.0.0
│ ├── lodash._reinterpolate@2.4.1
│ ├─┬ lodash.template@2.4.1
│ │ ├── lodash._escapestringchar@2.4.1
│ │ ├─┬ lodash.defaults@2.4.1
│ │ │ ├── lodash._objecttypes@2.4.1
│ │ │ └── lodash.keys@2.4.1
│ │ ├─┬ lodash.escape@2.4.1
│ │ │ ├─┬ lodash._escapehtmlchar@2.4.1
│ │ │ │ └── lodash._htmlescapes@2.4.1
│ │ │ └─┬ lodash._reunescapedhtml@2.4.1
│ │ │ └── lodash.keys@2.4.1
│ │ ├─┬ lodash.keys@2.4.1
│ │ │ ├── lodash._isnative@2.4.1
│ │ │ ├── lodash._shimkeys@2.4.1
│ │ │ └── lodash.isobject@2.4.1
│ │ ├── lodash.templatesettings@2.4.1
│ │ └─┬ lodash.values@2.4.1
│ │ └── lodash.keys@2.4.1
│ ├── minimist@0.2.0
│ ├─┬ multipipe@0.1.2
│ │ └── duplexer2@0.0.2
│ ├─┬ through2@0.5.1
│ │ ├── readable-stream@1.0.33
│ │ └── xtend@3.0.0
│ └─┬ vinyl@0.2.3
│ └── clone-stats@0.0.1
└── shelljs@0.3.0

npm WARN EPACKAGEJSON example@1.0.0 No repository field.
npm WARN EPACKAGEJSON example@1.0.0 No license field

@JakeMuller
Copy link

I recently updraded to node 4.0 and got the exact same error as @MontesinosFernando

also using ionic

I tried following all the suggestions above. None of it works for me.

@xzyfer
Copy link
Collaborator

xzyfer commented Sep 25, 2015

Iconic uses an very old version of node-sass which is not compatible with
node 4. You need to down grade to node 0.12.

You should open an issue with iconic to update to node-sass 3.3.3 since the
version they rely on is missing major Sass features.
On 24 Sep 2015 23:05, "Jake" notifications@github.com wrote:

I recently updraded to node 4.0 and got the exact same error as
@MontesinosFernando https://github.com/MontesinosFernando

also using ionic


Reply to this email directly or view it on GitHub
#174 (comment)
.

@landonreed
Copy link

@joe-watkins 👍

@ayelen117
Copy link

Thanks @konclave that worked out for me. First I removed the node-sass folder and then I run

 npm install node-sass
command.

@ericsoco
Copy link

The only thing that worked for me:

  1. rm -rf node_modules
  2. remove gulp-sass from package.json
  3. npm install
  4. npm install --save-dev gulp-sass@2.1.0

@wkentdag
Copy link

@joe-watkins thank u 🙏

@mdmullins
Copy link

I just had this issue and solved it by altering the dependancy of node-sass-middleware to the 3.3.2 version in package manager

@moneytree-doug
Copy link

This is happening to me on CircleCI, but it works if I re-build after the first failure. Is there a way to permanent way to fix this?

@xzyfer
Copy link
Collaborator

xzyfer commented Feb 29, 2016

To be completely clear this issue happens because the version of node that npm used to install it's modules is different from the version you're trying to execute node-sass with. This can happen a couple different ways, the most common are:

  • you have changed node versions changed after running npm install
  • you have multiple node versions installed (possible a system level one npm using)
  • you have change os after running npm install (this happens on dockerized systems with shared fs)

Either the fix to rebuild node-sass

npm rebuild node-sass

The long term solution is to figure why your node version is changing (if you're not doing it on purpose). Looking at the contents of the node-sass vendor directory will give you a clue.

@DurgaMasabattula
Copy link

@joe-watkins Thank You, your solution worked great

@KITSSubhrajitDutta
Copy link

@joe-watkins - Thank you! finally worked with your solution! 👍

@cuongduc
Copy link

@ericsoco you saved my life. I had been trying all the other solutions for days but only yours work.
Thanks

@johnzhu12
Copy link

@joe-watkins this is the only solution works for me! tks

@megazoor
Copy link

Thank you to everyone on this page who helped contribute to me finally resolving this issue...

This FINALLY worked for me - after HOURS of struggle...

  1. Downgraded from node4.x to node 0.12.x https://nodejs.org/dist/latest-v0.12.x/node-v0.12.17-x86.msi
  2. Deleted node_modules
  3. npm uninstall --save-dev gulp-sass
  4. npm uninstall --save-dev node-sass
  5. add to package.json
    "scripts": {
    "postinstall": "npm rebuild gulp-sass node-sass; # BUGFIX gulp libsass bindings not found error - libsass bindings not found error on v1.3.1, v1.3.2 #174"
    },
  6. npm install
  7. npm install --save-dev gulp-sass
  8. run gulp - YAY 👍 💯

@vicdidia
Copy link

vicdidia commented Dec 22, 2016

The user maketroli listed his method here which worked very well. I'd recommend doing a fresh install of the node modules first though.

sudo npm install -g n
sudo n 0.12.7
sudo npm install node-sass@2
sudo npm -g install node-gyp@3
sudo npm rebuild node-sass 

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests