(node-gyp rebuild 2> builderror.log) || (exit 0)
# 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])
Hack Trick work:
# cd ~
# npm install -g node-gyp
# npm install socket.io
https://github.com/TooTallNate/node-gyp#readme
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?
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])
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-gyp
npm 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 [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]
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) %
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: 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
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.