-
Notifications
You must be signed in to change notification settings - Fork 1.3k
npm install hanging on Ubuntu 12.04 #898
Comments
your setup is pretty ancient... what happens if you enter the node-sass directory, launch
|
well, if I do that locally on OS X I get undefined, I don't have an Also, my setup seems ancient, but I've actually had to keep it here because of all the instability with node sass--it didn't work on node 0.12 for a long time, node sass > 1.2.3 had installs like this failing all over the place, and some of the blame at the time was on npm v > 2. I would really like to upgrade everything, but I need things to be relatively stable. As I mentioned, I did upgrade to node-sass v2 and still saw the install failures on the CI. I also saw it while making the CI machine use |
It looks like the |
That's my current hypothesis, and I'm still trying it out right now. So far, so good, and I'll go ahead and close this issue if it turns out to be the case. Thanks! |
@saper is correct, it looks like the install process has completed before the freeze. It's worth trying node-sass@beta. It addresses all the know stability and installation issues, as well as full iojs and 0.12 support. |
Thanks @xzyfer . After a brief install, using the latest |
That's right, the latest gulp doesn't use the node-sass beta, but they support it in a branch. You can try
This is what I currently use in production. |
that's awesome, i'd love to test it out, but i'm still getting the |
You might have to clear node_modules if you previously had gulp-sass installed $ rm -r node_modules/
$ npm cache clean
$ npm install --save-dev dlmanning/gulp-sass#2.x If you're still experiencing |
I would also update you npm. Older version had issues when backing onto git like you are here. $ npm install -g npm
$ npm -v
2.6.1 |
i'm actually afraid that the whole reason i'm running into this is because the CI machines are running a newer version of npm (2.7.6). we've run into this problem before with node-sass. our solution at the time was to go back to I've followed your directions and got it to stop giving me the bus error! Thank you for that. However, that was locally on OS X, and I'm currently testing on our CI machine. I'll keep you posted. Thank you! |
Okay, so this is weird, but after running your commands above (clearing the cache and all), for whatever reason, gulp-sass v1.2.3 was installed again (with node sass 1.2.3). Bummer, too, I thought I had it fixed. But installing gulp-sass 2.x with the latest node-sass gave me the same |
what's the contents of the package.json file running CI? |
it's quite long, actually, as it includes browserify transforms and shims and such. here are some of the modules that deal with lower level files that need node bindings: "devDependencies": {
"browser-sync": "^1.7.1",
"gulp-sass": "git://github.com/dlmanning/gulp-sass.git#2.x",
"gulp-svg-sprites": "^1.0.3", // uses node fibers and libxmljs
"phantomjs": "~1.9.7-15",
"watchify": "^3.1.0"
} |
i should also add that at times when it stalls it is not stalling at the 'exiting' statement, but further down after that install has succeeded, at this point: gulp-sass@1.2.3 node_modules/gulp-sass
├── clone@0.1.19
├── map-stream@0.1.0
├── vinyl-sourcemaps-apply@0.1.4 (source-map@0.1.43)
└── node-sass@1.2.3 (get-stdin@3.0.2, object-assign@1.0.0, replace-ext@0.0.1, nan@1.7.0, cross-spawn@0.2.9, shelljs@0.3.0, mkdirp@0.5.0, meow@2.1.0, chalk@0.5.1, gaze@0.5.1, mocha@2.2.4) where the next couple lines (on successful builds), would be: /home/ubuntu/nvm/v0.10.32/bin/gulp -> /home/ubuntu/nvm/v0.10.32/lib/node_modules/gulp/bin/gulp.js
gulp@3.8.11 /home/ubuntu/nvm/v0.10.32/lib/node_modules/gulp
├── pretty-hrtime@0.2.2
├── interpret@0.3.10
├── deprecated@0.0.1
├── archy@1.0.0
├── tildify@1.0.0 (user-home@1.1.1)
├── minimist@1.1.1
├── v8flags@2.0.5 (user-home@1.1.1)
├── chalk@0.5.1 (ansi-styles@1.1.0, escape-string-regexp@1.0.3, supports-color@0.2.0, has-ansi@0.1.0, strip-ansi@0.3.0)
├── semver@4.3.3
// ...
// ... This is why I still think it's a node-sass issue, even if it's an issue with the change in server environment. |
I'm simply failing to understand how node-sass@1.x is being installed. There must be a misconfiguration in the package.json. Can you confirm there is only one node-sass folder in your node_module folder?
|
sorry, I should have been more clear--the error, I think, was from me not deleting my |
So I the solution here is to use 3.0.0-beta. At present you're unable to do to |
Unfortunately I haven't had a chance yet. All I know is that it doesn't like something in our sass--but we have a lot of sass files, and it's going to take me a minute to filter them out and find the issue. |
Please update this issue if you have more information and we'll reopen it. |
with node-sass 3.2.0 it's failing with this combination:
But works with this combination:
|
@hypery2k can you follow our TROUBLESHOOTING.md guide and post the results, probably to a new issue (unless you get the very same symptoms as described in some other report)? |
@hypery2k you probably want an npm > 2.10. There have been issues with life cycle scripts in earlier 2.x versions. |
Hello!
Just today (or the last few days, perhaps), our CI builds started timing out, and they'd fail at the node sass install step:
They'd just hang at the
Binary is fine; exiting
step. I've seen there are several issues that are similar to this, but I haven't really seen a solution. The CI is running:I still get the hanging if I upgrade to node-sass v2--that was my first inclination. But changing npm versions and node-sass versions have not seemed to make a difference. Did any other dependency have a release recently?
Thanks!!
Noah
The text was updated successfully, but these errors were encountered: