socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

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

Open ghost opened this issue 13 years ago • 26 comments

# 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

> [email protected] install /root/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

[email protected] node_modules/socket.io
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected], [email protected])

ghost avatar Jan 04 '13 04:01 ghost

Hack Trick work:

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

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

ghost avatar Jan 04 '13 04:01 ghost

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?

eupharis avatar Jan 27 '13 19:01 eupharis

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


...
npm http 304 https://registry.npmjs.org/tinycolor
> [email protected] 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
[email protected] /usr/lib/node_modules/node-inspector
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])

apptous-max avatar Jan 28 '13 14:01 apptous-max

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

3rd-Eden avatar Jan 28 '13 14:01 3rd-Eden

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

marols avatar Feb 03 '13 16:02 marols

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

a9entropy avatar Feb 09 '13 12:02 a9entropy

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

mindaslab avatar Feb 13 '13 10:02 mindaslab

Not work with me. Cannot install

cowboybkit avatar Feb 23 '13 09:02 cowboybkit

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

jakobloekke avatar Mar 01 '13 10:03 jakobloekke

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.

3rd-Eden avatar Mar 01 '13 11:03 3rd-Eden

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.

jewelsjacobs avatar Mar 19 '13 22:03 jewelsjacobs

The same error on Ubuntu 12.10. It stopped in postinstall [email protected]

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 [email protected]
npm verb linkBins [email protected]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm verb rebuildBundles [ 'zeparser' ]
npm info install [email protected]
npm info postinstall [email protected]

rogerz avatar Mar 24 '13 11:03 rogerz

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

> [email protected] 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
[email protected] /Users/<myusername>/.rvm/share/npm/lib/node_modules/karma
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
<myusername> in ~/development_area/angular-testbed/angular-phonecat on (step-2) %

deanshelton913 avatar Apr 18 '13 18:04 deanshelton913

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.

3rd-Eden avatar Apr 18 '13 19:04 3rd-Eden

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

swe-jack avatar May 08 '13 05:05 swe-jack

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

d4tech avatar Jun 06 '13 05:06 d4tech

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.

vlad-shatskyi avatar Jan 23 '14 14:01 vlad-shatskyi

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

bcherny avatar Nov 02 '14 03:11 bcherny

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

kaishin avatar Dec 31 '14 14:12 kaishin

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

3rd-Eden avatar Jan 01 '15 11:01 3rd-Eden