andris9/stylus-sprite — Issue #3: error when installing module from npm.
Author: panosru
Created: 2012-01-26 16:30:33+00:00
State: open

Hi, after successful installation of `libgd2-xpm-dev` I tried to run `npm install stylus-sprite` but I got the following output:

```
root@dev:/home/rnd/domains/design.rnd/public_html/app-ui# npm install stylus-sprite
npm http GET https://registry.npmjs.org/stylus-sprite
npm http 304 https://registry.npmjs.org/stylus-sprite
npm http GET https://registry.npmjs.org/node-gd
npm http 304 https://registry.npmjs.org/node-gd

> node-gd@0.1.8 install /home/rnd/domains/design.rnd/public_html/app-ui/node_modules/stylus-sprite/node_modules/node-gd
> 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/local
'configure' finished successfully (0.684s)
Waf: Entering directory `/home/rnd/domains/design.rnd/public_html/app-ui/node_modules/stylus-sprite/node_modules/node-gd/build'
[1/2] cxx: node-gd.cc -> build/Release/node-gd_1.o
../node-gd.cc:19:25: fatal error: node_events.h: No such file or directory
compilation terminated.
Waf: Leaving directory `/home/rnd/domains/design.rnd/public_html/app-ui/node_modules/stylus-sprite/node_modules/node-gd/build'
Build failed: -> task failed (err #1):
{task: cxx node-gd.cc -> node-gd_1.o}
npm ERR! error installing node-gd@0.1.8
npm ERR! error installing stylus-sprite@0.1.7

npm ERR! node-gd@0.1.8 install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the node-gd@0.1.8 install script.
npm ERR! This is most likely a problem with the node-gd package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls node-gd
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.32-5-amd64
npm ERR! command "node" "/usr/local/bin/npm" "install" "stylus-sprite"
npm ERR! cwd /home/rnd/domains/design.rnd/public_html/app-ui
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! code ELIFECYCLE
npm ERR! message node-gd@0.1.8 install: `node-waf configure build`
npm ERR! message `sh "-c" "node-waf configure build"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/rnd/domains/design.rnd/public_html/app-ui/npm-debug.log
npm not ok
```

Thanks