Skip to content
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

Closed
ghost opened this issue Jan 4, 2013 · 26 comments
Closed

(node-gyp rebuild 2> builderror.log) || (exit 0) #1126

ghost opened this issue Jan 4, 2013 · 26 comments

Comments

@ghost
Copy link

ghost commented Jan 4, 2013

# npm install socket.io
npm http GET https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/base64id/0.1.0
npm http GET https://registry.npmjs.org/redis/0.7.3
npm http GET https://registry.npmjs.org/socket.io-client/0.9.11
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http 304 https://registry.npmjs.org/base64id/0.1.0
npm http 304 https://registry.npmjs.org/redis/0.7.3
npm http 304 https://registry.npmjs.org/policyfile/0.0.4
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.11
npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http 304 https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/options
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/zeparser/0.0.5
npm http 304 https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/commander

> ws@0.4.25 install /root/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

socket.io@0.9.13 node_modules/socket.io
├── base64id@0.1.0
├── policyfile@0.0.4
├── redis@0.7.3
└── socket.io-client@0.9.11 (xmlhttprequest@1.4.2, uglify-js@1.2.5, ws@0.4.25, active-x-obfuscator@0.0.1)
@ghost
Copy link
Author

ghost commented Jan 4, 2013

Hack Trick work:

# cd ~
# npm install -g node-gyp
# npm install socket.io

https://github.com/TooTallNate/node-gyp#readme

@eupharis
Copy link

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:

replace x.y.z with latest version

$ curl http://registry.npmjs.org/testacular/-/testacular-x.y.z.tgz | tar -xvz && mv package testacular

create symlinks (optional)

$ cd testacular
$ sudo ln -s $PWD/bin/testacular /usr/local/bin/testacular

Works great.

Is the problem with testacular's installation of socket.io in npm, rather than socket.io itself?

@apptous-max
Copy link

I had the same problem when installing node-inspector (Ubuntu 12.04):


...
npm http 304 https://registry.npmjs.org/tinycolor
> ws@0.4.25 install /usr/lib/node_modules/node-inspector/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Вход в каталог `/usr/lib/node_modules/node-inspector/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Выход из каталога `/usr/lib/node_modules/node-inspector/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
/usr/bin/node-inspector -> /usr/lib/node_modules/node-inspector/bin/inspector.js
node-inspector@0.2.0beta3 /usr/lib/node_modules/node-inspector
├── async@0.1.22
├── connect@1.8.7 (mime@1.2.9, formidable@1.0.11, qs@0.5.3)
└── socket.io@0.9.13 (base64id@0.1.0, policyfile@0.0.4, redis@0.7.3, socket.io-client@0.9.11)

@3rd-Eden
Copy link
Contributor

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

@marols
Copy link

marols commented Feb 3, 2013

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-gyp

npm install -g socket.io

@a9entropy
Copy link

I get the same error as @PGBI. I am on Ubuntu 12.04

@mindaslab
Copy link

Got this error using Ubuntu 12.10 , hasn't node got any dependency management like .deb files or something?

@cowboybkit
Copy link

Not work with me. Cannot install

@jakobloekke
Copy link

I have this issue as well. None of the mentioned tricks seem to resolve it.

@3rd-Eden
Copy link
Contributor

3rd-Eden commented Mar 1, 2013

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.

@jewelsjacobs
Copy link

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.

@rogerz
Copy link

rogerz commented Mar 24, 2013

The same error on Ubuntu 12.10. It stopped in postinstall active-x-obfuscator@0.0.1

npm install --verbose socket.io

npm verb about to build /usr/lib/node_modules/node-inspector/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator
npm info build /usr/lib/node_modules/node-inspector/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator
npm verb from cache /usr/lib/node_modules/node-inspector/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/package.json
npm verb linkStuff [ true,
npm verb linkStuff   '/usr/lib/node_modules',
npm verb linkStuff   false,
npm verb linkStuff   '/usr/lib/node_modules/node-inspector/node_modules/socket.io/node_modules/socket.io-client/node_modules' ]
npm info linkStuff active-x-obfuscator@0.0.1
npm verb linkBins active-x-obfuscator@0.0.1
npm verb linkMans active-x-obfuscator@0.0.1
npm verb rebuildBundles active-x-obfuscator@0.0.1
npm verb rebuildBundles [ 'zeparser' ]
npm info install active-x-obfuscator@0.0.1
npm info postinstall active-x-obfuscator@0.0.1

@deanshelton913
Copy link

Also have issue when installing Karma (which testacular was renamed to) https://github.com/karma-runner/karma.

npm install -g karma
...
....huge list of packages...
...

npm http 304 https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/tinycolor

> ws@0.4.25 install /Users/<myusername>/.rvm/share/npm/lib/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished
/Users/<myusername>/.rvm/share/npm/bin/karma -> /Users/<myusername>/.rvm/share/npm/lib/node_modules/karma/bin/karma
karma@0.8.5 /Users/<myusername>/.rvm/share/npm/lib/node_modules/karma
├── pause@0.0.1
├── dateformat@1.0.2-1.2.3
├── xmlbuilder@0.4.2
├── colors@0.6.0-1
├── chokidar@0.6.2
├── growly@1.1.1
├── mime@1.2.9
├── q@0.9.3
├── coffee-script@1.6.2
├── rimraf@2.1.4 (graceful-fs@1.2.0)
├── optimist@0.3.5 (wordwrap@0.0.2)
├── glob@3.1.21 (inherits@1.0.0, graceful-fs@1.2.0)
├── LiveScript@1.0.1 (prelude-ls@0.6.0)
├── lodash@1.1.1
├── log4js@0.6.3 (dequeue@1.0.3, semver@1.1.4, async@0.1.15, readable-stream@1.0.2)
├── minimatch@0.2.12 (sigmund@1.0.0, lru-cache@2.3.0)
├── http-proxy@0.10.1 (pkginfo@0.2.3, utile@0.1.7)
├── istanbul@0.1.22 (abbrev@1.0.4, which@1.0.5, fileset@0.1.5, nopt@2.0.0, wordwrap@0.0.2, async@0.1.22, mkdirp@0.3.5, esprima@0.9.9, handlebars@1.0.10, escodegen@0.0.21)
└── socket.io@0.9.14 (base64id@0.1.0, policyfile@0.0.4, redis@0.7.3, socket.io-client@0.9.11)
<myusername> in ~/development_area/angular-testbed/angular-phonecat on (step-2) %

@3rd-Eden
Copy link
Contributor

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.

@jackbillstrom
Copy link

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 :/

@d4tech
Copy link

d4tech commented Jun 6, 2013

Got the same issue,while trying to install node-inspector on OSX:10.8.3 fixed it by:
1)npm install -g node-gyp
2)git clone https://github.com/einaros/ws.git
3)npm install
4)npm install ws
5)npm install -g node-inspector

@vlad-shatskyi
Copy link

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.

@bcherny
Copy link

bcherny commented Nov 2, 2014

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

@kaishin
Copy link

kaishin commented Dec 31, 2014

@3rd-Eden If it's not an error then I don't need to see it.

@3rd-Eden
Copy link
Contributor

3rd-Eden commented Jan 1, 2015

@kaishin Then you should turn off logging while installing modules as npm decides what to show and what not to show.

@Injac
Copy link

Injac commented Jan 1, 2015

@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.

@barneycarroll
Copy link

'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.

@barneycarroll
Copy link

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.

@intec-co
Copy link

I solved the error in Ubuntu 14.04 with
apt-get install nodejs-legancy

@danielreisti
Copy link

In my mac, install xcode solved the problem.

@ghost
Copy link

ghost commented Mar 22, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests