mscdex/node-ncurses — Issue #12: NPM install on Mac OSX Lion fails
Author: techpriester
Created: 2011-12-04 10:04:40+00:00
State: open

Node version: 0.6.2
NPM version: 1.0.105

Installation fails with the following output:
```
[1/2] cxx: ncurses.cc -> build/Release/ncurses_1.o
../ncurses.cc:16:25: error: node_events.h: No such file or directory
../ncurses.cc:309: error: expected class-name before ‘{’ token
../ncurses.cc: In static member function ‘static void Window::Initialize(v8::Handle)’:
../ncurses.cc:316: error: ‘EventEmitter’ has not been declared
../ncurses.cc: In member function ‘void Window::close()’:
../ncurses.cc:629: error: ‘Unref’ was not declared in this scope
../ncurses.cc: In static member function ‘static v8::Handle Window::New(const v8::Arguments&)’:
../ncurses.cc:666: error: ‘class Window’ has no member named ‘Wrap’
../ncurses.cc:668: error: ‘class Window’ has no member named ‘Ref’
../ncurses.cc: In constructor ‘Window::Window()’:
../ncurses.cc:2067: error: class ‘Window’ does not have any field named ‘EventEmitter’
../ncurses.cc: In constructor ‘Window::Window(int, int, int, int)’:
../ncurses.cc:2073: error: class ‘Window’ does not have any field named ‘EventEmitter’
../ncurses.cc: In member function ‘void Window::Event(int)’:
../ncurses.cc:2107: error: ‘class Window’ has no member named ‘Emit’
Waf: Leaving directory `/Volumes/Spinning Rust/data/techpriester/Development/node-ncurses-test/node_modules/ncurses/build'
Build failed: -> task failed (err #1):
{task: cxx ncurses.cc -> ncurses_1.o}
npm ERR! error installing ncurses@0.2.0 Error: ncurses@0.2.0 preinstall: `node-waf configure build`
npm ERR! error installing ncurses@0.2.0 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing ncurses@0.2.0 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing ncurses@0.2.0 at ChildProcess.emit (events.js:70:17)
npm ERR! error installing ncurses@0.2.0 at maybeExit (child_process.js:359:16)
npm ERR! error installing ncurses@0.2.0 at Process.onexit (child_process.js:395:5)
npm ERR! ncurses@0.2.0 preinstall: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the ncurses@0.2.0 preinstall script.
npm ERR! This is most likely a problem with the ncurses 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 ncurses
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "ncurses"
npm ERR! cwd /Volumes/Spinning Rust/data/techpriester/Development/node-ncurses-test
npm ERR! node -v v0.6.2
npm ERR! npm -v 1.0.105
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Volumes/Spinning Rust/data/techpriester/Development/node-ncurses-test/npm-debug.log
npm not ok
```