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.
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?
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"
I'm unable to reproduce this. Can anyone else?
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.
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.
@kelkes I ran into the same issue on osx, needed to clean my ~./.npmrc and re-login into npm and everything worked again
@kelkes : Let me know if @steffenmllr's solution works for you because I'm still not able to reproduce the error.
@dlmanning @steffenmllr solution worked for me too.
.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.
something wrong with binding in node-sass package inside gulp-sass.
Install node-sass and remove gulp-sass/node_modules/node-sass works.
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.
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.
@konclave solution fixed the issue for me.
@konclave fix worked for me too. Nice one!
I same issue and had good luck with npm uninstall --save-dev gulp-sass then npm install --save-dev gulp-sass tnx all!
@adam-beck I'm having the same problems as you with 1.3.3, did you already solve it?
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.
@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.
@joe-watkins Thanks! This fixed my issue!
-Also of note I installed node-sass before this
@joe-watkins, your solution is the only one that worked for me
Can confirm, @joe-watkins has the working solution.
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.
Thanks @joe-watkins, https://github.com/dlmanning/gulp-sass/issues/174#issuecomment-78327519 works!
+1 for npm uninstall --save-dev grunt-sass or gulp-sass and then reinstall.
+1 for @joe-watkins
npm uninstall gulp-sass --save-dev
and then
npm install gulp-sass --save-dev
This did the job for me but I also had to run the same procedure for node-sass as well as gulp-sass :+1:
npm uninstall gulp-sass node-sass --save-dev
npm install gulp-sass node-sass --save-dev
@joe-watkins worked. thx. :-) :+1:
ζθ―δΊεη§εζ³γεη§εΈθ½½εη§ιθ£
γ 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.
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;
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
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?
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
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."
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 [email protected]: use node-gyp@3+, it does all the things
npm WARN prefer global [email protected] should be installed with -g
[email protected] 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
[email protected] 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
[email protected] install /home/goldenchino/example/node_modules/node-sass
node scripts/install.js[email protected] 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 [email protected] should be installed with -g
[email protected] /home/goldenchino/example
βββ¬ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ lodash.[email protected]
β β β βββ lodash.[email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ¬ [email protected]
β β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β β βββ¬ [email protected]
β β β β β βββ [email protected]
β β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ¬ [email protected]
β β β β β βββ¬ [email protected]
β β β β β β βββ [email protected]
β β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
βββ [email protected]
βββ¬ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ lodash.[email protected]
β βββ¬ lodash.[email protected]
β β βββ lodash.[email protected]
β β βββ¬ lodash.[email protected]
β β β βββ lodash.[email protected]
β β β βββ lodash.[email protected]
β β βββ¬ lodash.[email protected]
β β β βββ¬ lodash.[email protected]
β β β β βββ lodash.[email protected]
β β β βββ¬ lodash.[email protected]
β β β βββ lodash.[email protected]
β β βββ¬ lodash.[email protected]
β β β βββ lodash.[email protected]
β β β βββ lodash.[email protected]
β β β βββ lodash.[email protected]
β β βββ lodash.[email protected]
β β βββ¬ lodash.[email protected]
β β βββ lodash.[email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
βββ [email protected]
Successful npm install
Updated /home/goldenchino/example/www/index.html references to sass compiled css
Ionic project ready to use Sass!
/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.
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.
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
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
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?
just add/replace the gulp-sass version in the package.json, rm -rf node_modules and npm install
I get the following after running the npm install command.
npm WARN deprecated [email protected]: use node-gyp@3+, it does all the things
npm WARN prefer global [email protected] should be installed with -g
[email protected] 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
[email protected] 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
[email protected] install /home/goldenchino/example/node_modules/node-sass
node scripts/install.js[email protected] 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 [email protected] should be installed with -g
[email protected] /home/goldenchino/example
βββ¬ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ¬ [email protected]
β β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ lodash.[email protected]
β β β βββ lodash.[email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β β βββ¬ [email protected]
β β β β β βββ [email protected]
β β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ [email protected]
β β β β βββ¬ [email protected]
β β β β β βββ¬ [email protected]
β β β β β β βββ [email protected]
β β β β β βββ [email protected]
β β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
βββ [email protected]
βββ¬ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β β βββ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ lodash.[email protected]
β βββ¬ lodash.[email protected]
β β βββ lodash.[email protected]
β β βββ¬ lodash.[email protected]
β β β βββ lodash.[email protected]
β β β βββ lodash.[email protected]
β β βββ¬ lodash.[email protected]
β β β βββ¬ lodash.[email protected]
β β β β βββ lodash.[email protected]
β β β βββ¬ lodash.[email protected]
β β β βββ lodash.[email protected]
β β βββ¬ lodash.[email protected]
β β β βββ lodash.[email protected]
β β β βββ lodash.[email protected]
β β β βββ lodash.[email protected]
β β βββ lodash.[email protected]
β β βββ¬ lodash.[email protected]
β β βββ lodash.[email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
βββ [email protected]
npm WARN EPACKAGEJSON [email protected] No repository field.
npm WARN EPACKAGEJSON [email protected] No license field
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.
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" [email protected] wrote:
I recently updraded to node 4.0 and got the exact same error as
@MontesinosFernando https://github.com/MontesinosFernandoalso using ionic
β
Reply to this email directly or view it on GitHub
https://github.com/dlmanning/gulp-sass/issues/174#issuecomment-143050869
.
@joe-watkins :+1:
Thanks @konclave that worked out for me. First I removed the node-sass folder and then I run
npm install node-sasscommand.
The only thing that worked for me:
rm -rf node_modulesgulp-sass from package.jsonnpm installnpm install --save-dev [email protected]@joe-watkins thank u :pray:
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
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?
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:
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.
@joe-watkins Thank You, your solution worked great
@joe-watkins - Thank you! finally worked with your solution! :+1:
@ericsoco you saved my life. I had been trying all the other solutions for days but only yours work.
Thanks
@joe-watkins this is the only solution works for me! tks
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...
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
Most helpful comment
I same issue and had good luck with
npm uninstall --save-dev gulp-sassthennpm install --save-dev gulp-sasstnx all!