-
Notifications
You must be signed in to change notification settings - Fork 1.3k
npm ERR! node-sass@2.0.1 postinstall: node scripts/build.js
npm
#693
Comments
I copied the project from my Lion partition to my Snow Leopard partition and ran |
The error message is suggests that our osx binaries aren't compatible with @andrew can you please confirm what version of osx you were previously /cc @am11
|
I've been using 10.9 for the past year or so to build the Mac binaries. |
For both versions of Mac, please make separate gist with the output for this script (in case it fails as well): https://gist.github.com/am11/e5de3c49c219f0811e1d#comment-1386582. That might help us narrowing down the issue. |
I'm also having trouble on Arch linux. |
@pheew, going by your logs, everything seems fine. :) On top of it, you can re-reconfirm by compiling little Sass: With pwd == $ node
// this is node interactive console
require('node-sass').render({data: 'a{b:c}', success: function(result) {console.dir(result)}}) If that works as well, then it could be the npm cache thingy (https://docs.npmjs.com/cli/cache) or gulp-sass issue.. |
Yeah, it does seem to install correctly when just installing it seperately, ie: npm install node-sass
That said, i'm not entirely sure it's a node-sass issue. |
Ah, appears I've solved the issue. I've totally read over the python errors in the output. Forcing python to v2.7 by calling: npm update --python=python2.7 solved the issue on my part. Thanks for the help! |
Ouch! That's a very old version. The latest stable is at 2.0.1 mark. |
Haha, yeah, it's been a while. Have not been working on the frontend for a while :) |
Congrats! BTW it should not require consumer to have python installed. Python is required to manually build the binary, which kicks in when the prebuild binary is incompatible; something which we are trying to avoid (#655). I would suggest to upgrade node-sass version to 2.0.1 in gulp-sass. |
@metasean, that is too verbose than necessary and makes it 10x harder to parse! Besides, you don't have to copy paste my entire gist with the comment there. I specifically referenced a link to a gist comment for Mac, which says:
Please read the instructions, run the commands and only show the outputs like @pheew did in his 43-liner reply gist: https://gist.github.com/pheew/3540d5a86c5df835481f#file-. |
@am11 - sorry for the misunderstanding :-( Thank you for your patience! I did have some problems with some of the steps, so there are comments related to those. I have to reboot into the Lion side, so it'll be a few minutes before I have those results. |
I think you need to run those commands with |
On the Lion side, running sudo, everything looks good until Back in a few minutes with the Snow Leopard results when running sudo. |
You can try wrapping the node command in quotes like so:
|
So the Snow Leopard side (where I spend 95% of my time) is still not happy, even with sudo. :-( |
Nice work reproducing it in isolated mode. 👍 (Just to dismiss all doubts) At this point, if you delete this file |
On Lion, the replacement binding.node file results in:
I assume the node-sass and lib sass versions are a good sign. Is the 'undefined' expected? Unfortunately, Snow Leopard still doesn't make it successfully past the install command - Snow Leopard sudo gist 😦 |
As for Lion: I don't know why the download script is unable to download the It seems like the binary is incompatible with Snow Leopard. @xzyfer any ideas how can we achieve the binary compatibility for OSX 10.6? Does it follow the same rule as CentOS: build binary with lowest version of C/C++ runtime we are aiming to support? |
I'm normally behind a proxy, but I definitely haven't been the last couple of days. So I'm not sure why the binding.node might have been a problem. Out of curiosity, was "undefined" the expected last line for the Thank you for continuing to check on the Snow Leopard problem! I know it's an old OS, but I have to use it for work. |
@am11 I'm not sure at this point. It appears osx binaries have always been compiled on 10.9 so I wonder if this issue has always existed. Frankly it's rare to come across such old versions of OSX. Apple make it hard to run old versions in order to force users to update. @metasean have you been able to install node-sass prior to 2.0.1? |
@xzyfer - My backups don't show a node-sass directory in my user .npm directory, so I'm guessing I haven't. Strangely, I know I've had SASS compile in a couple of MEAN apps before, so I guess I'll be digging through old projects later this week to figure out how. |
@metasean wrote:
Yes. // node interactive console
> console.log('hi')
hi
undefined
// another example:
> function sumTwo(x, y) { return x + y; }
undefined // when we defined the function, the expression evaluation itself resulted in nothing
> sumTwo(1, 2)
3 |
@am11 - My head is hung low in mortified embarrassment 😔. |
Got something similar. Happens on
|
@kevinSuttle got the same stack with iojs-1.4.1 installed via nvm. |
node-sass v2.0.1 supports only io.js v1.2.0. We are aiming to expand this coverage in future releases. |
node-sass(2.0.1) does not support iojs > 1.2.0 ATM see: sass/node-sass#693 (comment)
@xzyfer, can you try building darwin binaries on Snow Leopard (for instance, using virtual machine) and test if those are forward compatible with Yosemite (v10.10)? It seems like others are facing the similar compatibility similar backward compatibility issue:http://stackoverflow.com/q/16358957 (also here is a related conversation: https://groups.google.com/forum/#!topic/wx-users/pmzdHVRjW5c). TravisCI uses fixed version of OSX: 10.9.5 (ref: http://docs.travis-ci.com/user/osx-ci-environment/#CI-environment-OS), otherwise we could easily configure 10.6 in YAML config to build the binaries and upload them to some shared hosting server from the CI job (or upload to GitHub using their API). |
I'm getting this with First encountered it a few days ago with Deleted my node_modules folder; when I try to reinstall deps I get the same error as @kevinSuttle. Forced using Python 2.7; on OSX 10.10.2 - not sure what else is relevant, but 3.0.0-pre does work. |
@metasean, v3.0.0-pre is out. I don't think we will be supporting older versions of Mac or any OS except Linux. So I am closing this as by design. |
I am seeing failures on OS X 10.7.5
Any hints? |
Try |
@mumrah please read issues fully before posting in the future. Technically we don't support OSX older than 10.9. As @kevinSuttle suggests you can try rebuilding the binary with |
Running node-gyp by hand won't probably help since those options are hard coded in our |
I have the same problem after updating node and this package. Why is Sass not supported anymore for older mac's, so many people use it in this environment? |
We need a pretty complete support of the C++11 standard, which only the latest versions of clang support. If somebody gets it to build using the earlier version and it can be done for the release every time, then it's fine. @Silom what is your problem exactly? Did you fetch the binary part needed for node 0.12 using |
@saper I got it working, I just forgot to |
This workaround worked form me. Starting with this setup: Cordova CLI: 5.3.3 I followed this step:
Ref: http://forum.ionicframework.com/t/error-running-gulp-sass/32311/20 |
thanks saper |
Implement API to fetch compiled version
While trying to install an npm package that requires gulp-sass, I'm getting installation errors for node-sass.
Background to explain output and log
I have one Snow Leopard and one Lion partition on my MacBook. I'm using Snow Leopard, but accessing a shared projects directory that is based in the Lion partition. For clarity in the output and log, I've changed the usernames to indicate which is which.
I have been using this dual system with npm for almost a year now. I've got over 700 packages in my user .npm directory, and never had a problem like this. In this case, I was installing the node packages for MEAN.js and the other 76 packages installed without a hiccup.
npm install node-sass
When trying to run
npm install node-sass
from iojs-v1.2.0, I get the following (I started with node v0.10.36, v0.33.00, and node v0.12.0 and got similar results with each):npm-debug.log
The npm-debug.log is available at https://gist.githubusercontent.com/metasean/6f2a4db81313fd971dfb/raw/npm-debug.log_for_npm_install_node-sass
_Any ideas on how I might be able to get node-sass to fully install?_
The text was updated successfully, but these errors were encountered: