node-sass icon indicating copy to clipboard operation
node-sass copied to clipboard

Bus error (core dumped) - Error when run 'npm rebuild' - node-sass issues

Open mpmadhuranga opened this issue 10 years ago • 11 comments

When trying to run gulp I get the following error: Bus error (core dumped)

Then I found it is because of the node-sass issue. So I ran npm rebuild and I came up with following error.

/node_modules/gulp-sass/node_modules/node-sass/vendor/linux-x64-46/binding.node ` exists. 
 testing binary.
Bus error (core dumped)

npm ERR! Linux 3.19.0-56-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "rebuild"
npm ERR! node v4.4.0
npm ERR! npm  v3.8.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 135
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

System is elementary Os if that helps.

mpmadhuranga avatar Mar 16 '16 05:03 mpmadhuranga

Please read the CONTRIBUTING.md before opening an issue.

xzyfer avatar Mar 16 '16 05:03 xzyfer

@xzyfer Could you please look into this??

mpmadhuranga avatar Mar 16 '16 05:03 mpmadhuranga

I see the same issue on node 5.9 and latest node-sass.

musukvl avatar Mar 18 '16 20:03 musukvl

@musukvi please report details about your platform, as linked above

saper avatar Mar 18 '16 20:03 saper

@musukvi please report details about your platform, as linked above

saper avatar Mar 18 '16 20:03 saper

@musukvi please report details about your platform, as linked above

saper avatar Mar 18 '16 20:03 saper

@musukvl @madhurangaonbit please read the CONTRIBUTING.md before opening a new issue. Closing this since these two reports are unrelated to each other. If you're still experiencing problem open a new issue.

xzyfer avatar Mar 19 '16 04:03 xzyfer

Solved by installing libsass on Ubuntu...

knibals avatar Sep 06 '16 09:09 knibals

Same error on Arch Linux

Binary found at /node_modules/node-sass/vendor/linux-x64-51/binding.node
Testing binary
[1]    6870 bus error (core dumped)  npm install

erayaydin avatar Jan 05 '17 07:01 erayaydin

Our binaries don't support Arch Linux. We're clear about this on the release notes. You'll need to rebuild the binary.

npm rebuild node-sass

xzyfer avatar Jan 05 '17 08:01 xzyfer

Its fixed with installing libsass and sassc.

pacman -Sy libsass sassc

npm rebuild not fixing binary. Deleting all node_modules folder and reinstalling NPM packages fixed problem.

erayaydin avatar Jan 05 '17 15:01 erayaydin