-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(node-gyp rebuild 2> builderror.log) || (exit 0) #1126
Comments
Hack Trick work:
|
I too had this issue. Using Ubuntu 12.04. I fixed it by removing all the testacular installs from my system (both as user and superuser) and deleting all the symlinks. Then I did the manual install steps:
Works great. Is the problem with testacular's installation of socket.io in npm, rather than socket.io itself? |
I had the same problem when installing node-inspector (Ubuntu 12.04):
|
I don't see any error here, it's an optional build step for WS so it do some faster buffer stuff. All the installations are correct without any errors. If you would like to see this resolved, open an issue in the correct repo and that is over at github.com/einaros/ws |
Same issue fo me on OS X Lion 10.7.5. The following solved it for me (almost same as @PGBI) cd ~npm install -g node-gypnpm install -g socket.io |
I get the same error as @PGBI. I am on Ubuntu 12.04 |
Got this error using Ubuntu 12.10 , hasn't node got any dependency management like .deb files or something? |
Not work with me. Cannot install |
I have this issue as well. None of the mentioned tricks seem to resolve it. |
As I said before, the logs that are posted here show no error. The compilation is an OPTIONAL step, the ws module will still be correctly installed when it fails to compile. |
Just an FYI, if your on Windows you can install this error free by following the instructions on running node-gyp for Windows: https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup Otherwise the install will barf when building node-gyp. |
The same error on Ubuntu 12.10. It stopped in postinstall
|
Also have issue when installing Karma (which testacular was renamed to) https://github.com/karma-runner/karma.
|
I'm just gonna gently post this again. There is no error, if you would have actually read the stack trace and checked the result you should have seen that socket.io is installed. |
My console says the exact same thing as the opening post. When I try "node server.js" om my appliction, and opens the localhost:PORT in my browser, my browser just keeps on loading and nothing really shows up. As if I would connect to a really slow server :/ |
Got the same issue,while trying to install node-inspector on OSX:10.8.3 fixed it by: |
In my case it happened because I had python 3.3, which isn't supported. There is a parameter --python to node-gyp which you can point to your python2, but I simply renamed /usr/bin/python2 to python temporarily. |
Issue persists on centos, @ghost and @marols's fixes do not work. Here's my Dockerfile that reliably reproduces it: # DOCKER-VERSION 1.1.2
FROM centos:latest
# install nodejs
RUN yum -y update
RUN yum groupinstall -y "Development Tools"
RUN curl -sL https://rpm.nodesource.com/setup | bash -
RUN yum install -y nodejs
# install git
RUN yum install -y git
# bundle
COPY . home
# install deps
WORKDIR home
RUN npm install
# expose a port
EXPOSE 3000
# start the app
CMD npm start |
@3rd-Eden If it's not an error then I don't need to see it. |
@kaishin Then you should turn off logging while installing modules as npm decides what to show and what not to show. |
@3rd-Eden Glad it is not an error. Installed node 0.10.35 on my Galileo and tried to install socket.io as well (and I am a starter, not much experience). That got me confused a bit. But thanks for the clarification. |
'Not an error' is fair enough and a lot of these logs don't describe any real world problem, but I've got my build executing in Docker like @bcherny – intermittently the Docker boot process goes into an infinite loop immediately after logging the line in the title. |
FYI in my case it turns out socket.io is just one of several packages whose optional native dependencies crash Docker in certain combinations with other native dependencies being installed concurrently by NPM. So those who are actually suffering from a crash might be looking for this NPM bug. |
I solved the error in Ubuntu 14.04 with |
In my mac, install xcode solved the problem. |
on ubuntu 14.04 I needed to create a link in /usr/bin because /usr/bin/env was looking for /usr/bin/node ln -s /usr/bin/nodejs /usr/bin/node |
The text was updated successfully, but these errors were encountered: