astro/node-expat — Issue #29: npm package installs to /home/stephan
Author: JohnHardy
Created: 2012-01-24 15:29:03+00:00
State: open

I recently installed node and npm on my server and have been attempting to install your xml-stream lib (which looks great!)

However, following:

```bash
curl http://npmjs.org/install.sh | sh
npm update
npm install xml-stream
```

I get the error:

```bash
Waf: Leaving directory `/home/node_modules/xml-stream/node_modules/node-expat/build'
Build failed: -> task failed (err #1):
{task: cxx node-expat.cc -> node-expat_1.o}
npm ERR! error installing node-expat@1.3.2
```

So I try node-expat on it's own to see if I can get some more info

```bash
npm install node-expat
```

```bash
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat

> node-expat@1.4.3 install /home/john/node_modules/node-expat
> 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 /usr
Checking for header expat.h : yes
'configure' finished successfully (0.100s)
Waf: Entering directory `/home/stephan/programming/node-expat/build'
Waf: Leaving directory `/home/stephan/programming/node-expat/build'
'build' finished successfully (0.006s)
node-expat@1.4.3 ./node_modules/node-expat
```

So it reports that it works.. but actually it doesn't.

Xml-stream still does not install and I now have a new home directory for Stephan! ;-)

I'm pretty sure this isn't how it should happen. What am I missing?

Thanks,

John

John