bitcoinjs/node-bitcoin-exit — Issue #4: Problem installing - cannot write to p2p config.log
Author: RobKohr
Created: 2011-12-09 16:19:15+00:00
State: open

I went through the install steps in the readme, but hit a problem when it tried to write to the config log.

```
git clone git://github.com/bitcoinjs/node-bitcoin-exit.git --recursive
Initialized empty Git repository in /home/wallet/www/wallet/node_modules/node-bitcoin-exit/.git/
remote: Counting objects: 68, done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 68 (delta 32), reused 61 (delta 25)
Receiving objects: 100% (68/68), 18.05 KiB, done.
Resolving deltas: 100% (32/32), done.
wallet@li46-209:~/www/wallet/node_modules$ cd node-bitcoin-exit
wallet@li46-209:~/www/wallet/node_modules/node-bitcoin-exit$ sudo npm link bitcoin-p2p

> bitcoin-p2p@0.1.3 install /home/wallet/www/wallet/node_modules/node-bitcoin-exit/node_modules/bitcoin-p2p
> node-waf configure build

error: could not open '/node/lib/node_modules/bitcoin-p2p/build-cc/config.log' for writing
...more errors, but most likely caused by this

```
It seems that there is no build-cc directory in bitcoin-p2p. In order to just make things work, I tried adding that directory and touching a config.log in there.

My next attempt didn't work any better:
```
sudo npm link bitcoin-p2p
npm ERR! Error: Refusing to delete: /node/share/man/man1/bitcoin-p2p-bitcoinjs.1 not in /home/wallet/www/wallet/node_modules/node-bitcoin-exit/node_modules/bitcoin-p2p
npm ERR! at clobberFail (/node/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! at next (/node/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
Npm -ERR! at /node/lib/node_modules/npm/node_modules/rimraf/rimraf.js:105:12
npm ERR! at cb (/node/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 2.6.39.1-linode34
npm ERR! command "node" "/node/bin/npm" "link" "bitcoin-p2p"
npm ERR! cwd /home/wallet/www/wallet/node_modules/node-bitcoin-exit
npm ERR! node -v v0.4.3
npm ERR! npm -v 1.0.106
npm ERR! path /node/share/man/man1/bitcoin-p2p-bitcoinjs.1
npm ERR! code EEXIST
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/wallet/www/wallet/node_modules/node-bitcoin-exit/npm-debug.log
npm not ok
```

I removed the build-cc directory that I stuck in there to smooth over the process, and tried one more time to link.

I ended up with the same "refusing to delete" error".