voodootikigod/node-serialport — Issue #31: Installation Error
Author: BartoilPerso
Created: 2012-01-12 08:32:52+00:00
State: open

I've been trying for a few hours now to get this installed under Ubuntu 10.04. I've updated Node, NPM (at first NPM didn't want to acknowledge the existence of the serialport package). Now I'm just starting to get confused, and frustrated.

robot@RobotTestSystem:~/code$ sudo npm install serialport
[sudo] password for robot:
npm WARN node-uuid@1.3.3 dependencies field should be hash of : pairs
npm WARN websocket-server@1.4.04 package.json: bugs['web'] should probably be bugs['url']
npm http GET https://registry.npmjs.org/serialport
npm http 304 https://registry.npmjs.org/serialport

> serialport@0.3.0 install /home/robot/code/node_modules/serialport
> cd serialport_native;node-waf configure build;cp build/default/serialport_native.node ../

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.192s)
Waf: Entering directory `/home/robot/code/node_modules/serialport/serialport_native/build'
[1/2] cxx: serialport_native.cc -> build/Release/serialport_native_1.o
In file included from ../serialport_native.cc:3:
../serialport_native.h:6:25: error: node_events.h: No such file or directory
../serialport_native.cc:11:59: warning: extra tokens at end of #include directive
Waf: Leaving directory `/home/robot/code/node_modules/serialport/serialport_native/build'
Build failed: -> task failed (err #1):
{task: cxx serialport_native.cc -> serialport_native_1.o}
cp: cannot stat `build/default/serialport_native.node': No such file or directory
npm ERR! error installing serialport@0.3.0
npm ERR! serialport@0.3.0 install: `cd serialport_native;node-waf configure build;cp build/default/serialport_native.node ../`
npm ERR! `sh "-c" "cd serialport_native;node-waf configure build;cp build/default/serialport_native.node ../"` failed with 1
npm ERR!
npm ERR! Failed at the serialport@0.3.0 install script.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cd serialport_native;node-waf configure build;cp build/default/serialport_native.node ../
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.32-33-generic-pae
npm ERR! command "node" "/usr/local/bin/npm" "install" "serialport"
npm ERR! cwd /home/robot/code
npm ERR! node -v v0.7.0-pre
npm ERR! npm -v 1.1.0-beta-10
npm ERR! code ELIFECYCLE
npm ERR! message serialport@0.3.0 install: `cd serialport_native;node-waf configure build;cp build/default/serialport_native.node ../`
npm ERR! message `sh "-c" "cd serialport_native;node-waf configure build;cp build/default/serialport_native.node ../"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/robot/code/npm-debug.log
npm not ok

What is the issue? Am I missing something simple?

Thanks!