-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Node-sass build issue when trying to install grunt-sass #635
Comments
I don't know which version of node-sass OP is installing. It seems like grunt sass is bypassing the prebuild binary download. @jasonsanjose, can you show us the full log (and wrap it inside ```, so it is readable, see https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks)? |
@am11 did you mean to tag me? I don't think I've been on this issue. |
@jasonsanjose, i apologies. I was meaning to tag @ajshortt. I don't know how the auto-completion mixed it up. Though I blame myself for using Tab key so blindly.. 👎 |
@xzyfer, gcc --version |
@ajshortt, you need to update gcc to at least 4.6 in order to build libsass manually. But you shouldn't be building it manually if the intention is just to install node sass via npm (but to use prebuild binary). |
Having said that, we need the output of |
@am11 I have made the biggest mistake of my life! I was ssh'd into our dev server and didnt realize. The server is old and probably needs updated xcode etc to get the latest gcc. Thanks for the help though guys |
Not sure if this is the same issue but I am being kick into a console when trying to run 'sudo npm install'. It seems to to be having problems as soon as it tried to install the node-sass. I am just following the FoundationPress install https://github.com/olefredrik/foundationpress/ which is a grunt build. It kicks me into this as soon as the node-sass part of the install comes...
|
@snowliondev, in order to isolate the issue, you can try installing node-sass separately: npm -v
node -v
node -p process.versions
node -p process.arch
node -p process.platform
mkdir /temp
cd /temp
npm install node-sass # should install v2.0.0-beta
# if you have reached this far without any error,
# then you should be able to run:
node -e "console.warn(require('node-sass').info())" If you get any error, please post the logs. |
I am having the same problem, I just tried this too, here's my system and version info: uname -a: npm -v node -v node -p process.versions: and the error message I get is: |
@damonsmith, try with node v0.10.35 stable build. |
Hi, thanks for that, yes it works fine with 0.10.35 (and 0.10.25). So if you try to load the module in the latest version of node it fails silently, reports no errors of any sort and is just not registered when you try to use it. Is it possible to get the module to log meaningful errors? Or is it a shortcoming of the node module loading system that it swallows errors? |
@damonsmith, each runtime version require rebuilding the binary. See #627 (comment). So we are only prebuilding binary for latest stable version of node.js v0.10.36 as of now. Node.js v0.11 branch is unstable. But you can manually build the binary, given you have tools install (in which case, refer to readme). |
Refactor C API for more robust ABI
Basically when i try to npm install grunt-sass, node-sass is having problems build on my machine
node scripts/build.js
CXX(target) Release/obj.target/binding/src/binding.o
cc1plus: error: unrecognized command line option "-std=c++11"
cc1plus: error: unrecognized command line option "-stdlib=libc++"
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 10.8.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/admin/htdocs/mm-2015/wp-content/themes/mm-2015/node_modules/grunt-sass/node_modules/node-sass
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
Build failed
Any help please
The text was updated successfully, but these errors were encountered: