bitcoinjs/node-bitcoin-p2p — Issue #48: npm install issue with socket.io
Author: RobKohr
Created: 2011-12-09 15:56:43+00:00
State: open

It seems to be somehow relying on an old version of socket.io that isn't building properly. (it has a bad package.tgz)

Below is what happened:
```
sudo npm install bitcoin-p2p -g

> buffertools@1.0.5 preinstall /node/lib/node_modules/bitcoin-p2p/node_modules/buffertools
> ./build-wrapper

> bigint@0.3.7 install /node/lib/node_modules/bitcoin-p2p/node_modules/bigint
> node-waf configure build

Setting srcdir to : /node/lib/node_modules/bitcoin-p2p/node_modules/buffertools
Setting blddir to : /node/lib/node_modules/bitcoin-p2p/node_modules/buffertools/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /node
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /node
'configure' finished successfully (0.057s)
'configure' finished successfully (0.048s)
Waf: Entering directory `/node/lib/node_modules/bitcoin-p2p/node_modules/buffertools/build'
Waf: Entering directory `/node/lib/node_modules/bitcoin-p2p/node_modules/bigint/build'
[1/2] cxx: buffertools.cc -> build/default/buffertools_1.o
[1/2] cxx: bigint.cc -> build/default/bigint_1.o

> mongodb@0.9.7-1.4 install /node/lib/node_modules/bitcoin-p2p/node_modules/mongoose/node_modules/mongodb
> node install.js

================================================================================
= =
= To install with C++ bson parser do =
= =
================================================================================
[2/2] cxx_link: build/default/buffertools_1.o -> build/default/buffertools.node
Waf: Leaving directory `/node/lib/node_modules/bitcoin-p2p/node_modules/buffertools/build'
'build' finished successfully (1.067s)
[2/2] cxx_link: build/default/bigint_1.o -> build/default/bigint.node
Waf: Leaving directory `/node/lib/node_modules/bitcoin-p2p/node_modules/bigint/build'
'build' finished successfully (1.443s)

> daemon@0.3.2 preinstall /node/lib/node_modules/bitcoin-p2p/node_modules/forever/node_modules/daemon
> node-waf configure build

Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /node
'configure' finished successfully (0.045s)
Waf: Entering directory `/node/lib/node_modules/bitcoin-p2p/node_modules/forever/node_modules/daemon/build'
[1/2] cxx: src/daemon.cc -> build/default/src/daemon_1.o
[2/2] cxx_link: build/default/src/daemon_1.o -> build/default/daemon.node
Waf: Leaving directory `/node/lib/node_modules/bitcoin-p2p/node_modules/forever/node_modules/daemon/build'
'build' finished successfully (0.386s)
npm ERR! gzip "--decompress" "--stdout" "/home/wallet/.npm/socket.io/0.6.18/package.tgz"
npm ERR! gzip "--decompress" "--stdout" "/home/wallet/.npm/socket.io/0.6.18/package.tgz" gzip: /home/wallet/.npm/socket.io/0.6.18/package.tgz: unexpected end of file
npm ERR! gzip "--decompress" "--stdout" "/home/wallet/.npm/socket.io/0.6.18/package.tgz"
npm ERR! Failed unpacking /home/wallet/.npm/socket.io/0.6.18/package.tgz
npm ERR! error installing socket.io@0.6.18 Error: Failed gzip "--decompress" "--stdout" "/home/wallet/.npm/socket.io/0.6.18/package.tgz"
npm ERR! error installing socket.io@0.6.18 exited with 1
npm ERR! error installing socket.io@0.6.18 at ChildProcess. (/node/lib/node_modules/npm/lib/utils/exec.js:77:19)
npm ERR! error installing socket.io@0.6.18 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing socket.io@0.6.18 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! error installing dnode@0.8.2 Error: Failed gzip "--decompress" "--stdout" "/home/wallet/.npm/socket.io/0.6.18/package.tgz"
npm ERR! error installing dnode@0.8.2 exited with 1
npm ERR! error installing dnode@0.8.2 at ChildProcess. (/node/lib/node_modules/npm/lib/utils/exec.js:77:19)
npm ERR! error installing dnode@0.8.2 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing dnode@0.8.2 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! error installing prompt@0.1.11 Error: Unresolveable cycle detected
npm ERR! error installing prompt@0.1.11 at checkCycle (/node/lib/node_modules/npm/lib/install.js:541:12)
npm ERR! error installing prompt@0.1.11 at nextStep (/node/lib/node_modules/npm/lib/utils/chain.js:54:8)
npm ERR! error installing prompt@0.1.11 at cb (/node/lib/node_modules/npm/lib/utils/chain.js:37:10)
npm ERR! error installing prompt@0.1.11 at checkEngine (/node/lib/node_modules/npm/lib/install.js:516:10)
npm ERR! error installing prompt@0.1.11 at nextStep (/node/lib/node_modules/npm/lib/utils/chain.js:54:8)
npm ERR! error installing prompt@0.1.11 at chain (/node/lib/node_modules/npm/lib/utils/chain.js:27:3)
npm ERR! error installing prompt@0.1.11 at installOne_ (/node/lib/node_modules/npm/lib/install.js:488:3)
npm ERR! error installing prompt@0.1.11 at installOne (/node/lib/node_modules/npm/lib/install.js:428:3)
npm ERR! error installing prompt@0.1.11 at /node/lib/node_modules/npm/lib/install.js:370:9
npm ERR! error installing prompt@0.1.11 at /node/lib/node_modules/npm/lib/utils/async-map.js:57:35
npm ERR! error installing clip@0.1.6 Error: Unresolveable cycle detected
npm ERR! error installing clip@0.1.6 at checkCycle (/node/lib/node_modules/npm/lib/install.js:541:12)
npm ERR! error installing clip@0.1.6 at nextStep (/node/lib/node_modules/npm/lib/utils/chain.js:54:8)
npm ERR! error installing clip@0.1.6 at cb (/node/lib/node_modules/npm/lib/utils/chain.js:37:10)
npm ERR! error installing clip@0.1.6 at checkEngine (/node/lib/node_modules/npm/lib/install.js:516:10)
npm ERR! error installing clip@0.1.6 at nextStep (/node/lib/node_modules/npm/lib/utils/chain.js:54:8)
npm ERR! error installing clip@0.1.6 at chain (/node/lib/node_modules/npm/lib/utils/chain.js:27:3)
npm ERR! error installing clip@0.1.6 at installOne_ (/node/lib/node_modules/npm/lib/install.js:488:3)
npm ERR! error installing clip@0.1.6 at installOne (/node/lib/node_modules/npm/lib/install.js:428:3)
npm ERR! error installing clip@0.1.6 at /node/lib/node_modules/npm/lib/install.js:370:9
npm ERR! error installing clip@0.1.6 at /node/lib/node_modules/npm/lib/utils/async-map.js:57:35
npm ERR! error installing forever@0.7.5 Error: Unresolveable cycle detected
npm ERR! error installing forever@0.7.5 at checkCycle (/node/lib/node_modules/npm/lib/install.js:541:12)
npm ERR! error installing forever@0.7.5 at nextStep (/node/lib/node_modules/npm/lib/utils/chain.js:54:8)
npm ERR! error installing forever@0.7.5 at cb (/node/lib/node_modules/npm/lib/utils/chain.js:37:10)
npm ERR! error installing forever@0.7.5 at checkEngine (/node/lib/node_modules/npm/lib/install.js:516:10)
npm ERR! error installing forever@0.7.5 at nextStep (/node/lib/node_modules/npm/lib/utils/chain.js:54:8)
npm ERR! error installing forever@0.7.5 at chain (/node/lib/node_modules/npm/lib/utils/chain.js:27:3)
npm ERR! error installing forever@0.7.5 at installOne_ (/node/lib/node_modules/npm/lib/install.js:488:3)
npm ERR! error installing forever@0.7.5 at installOne (/node/lib/node_modules/npm/lib/install.js:428:3)
npm ERR! error installing forever@0.7.5 at /node/lib/node_modules/npm/lib/install.js:370:9
npm ERR! error installing forever@0.7.5 at /node/lib/node_modules/npm/lib/utils/async-map.js:57:35
npm ERR! error installing bitcoin-p2p@0.1.3 Error: Unresolveable cycle detected
npm ERR! error installing bitcoin-p2p@0.1.3 at checkCycle (/node/lib/node_modules/npm/lib/install.js:541:12)
npm ERR! error installing bitcoin-p2p@0.1.3 at nextStep (/node/lib/node_modules/npm/lib/utils/chain.js:54:8)
npm ERR! error installing bitcoin-p2p@0.1.3 at cb (/node/lib/node_modules/npm/lib/utils/chain.js:37:10)
npm ERR! error installing bitcoin-p2p@0.1.3 at checkEngine (/node/lib/node_modules/npm/lib/install.js:516:10)
npm ERR! error installing bitcoin-p2p@0.1.3 at nextStep (/node/lib/node_modules/npm/lib/utils/chain.js:54:8)
npm ERR! error installing bitcoin-p2p@0.1.3 at chain (/node/lib/node_modules/npm/lib/utils/chain.js:27:3)
npm ERR! error installing bitcoin-p2p@0.1.3 at installOne_ (/node/lib/node_modules/npm/lib/install.js:488:3)
npm ERR! error installing bitcoin-p2p@0.1.3 at installOne (/node/lib/node_modules/npm/lib/install.js:428:3)
npm ERR! error installing bitcoin-p2p@0.1.3 at /node/lib/node_modules/npm/lib/install.js:370:9
npm ERR! error installing bitcoin-p2p@0.1.3 at /node/lib/node_modules/npm/lib/utils/async-map.js:57:35
npm ERR! Unresolveable cycle detected
npm ERR! While installing: winston@0.5.9
npm ERR! Found a pathological dependency case that npm cannot solve.
npm ERR! Please report this to the package author.
npm ERR!
npm ERR! System Linux 2.6.39.1-linode34
npm ERR! command "node" "/node/bin/npm" "install" "bitcoin-p2p" "-g"
The following files couldn't be removed.
Remove them manually and try again

sudo rm -rf "/node/lib/node_modules/bitcoin-p2p/node_modules/forever/node_modules/clip/node_modules/prompt" "/node/lib/node_modules/bitcoin-p2p/node_modules/forever/node_modules" "/node/lib/node_modules/bitcoin-p2p/node_modules/forever"

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/wallet/www/wallet/npm-debug.log
npm not ok