mscdex/node-ncurses

Cannot find module './ncurses_addon'

Closed this issue · 3 comments

Using osx 10.6.8, npm version 1.0.1rcFINAL

installed via:
npm install ncurses

tried again building using
node-waf configure build

building seems to complete successfully but when requiring i get the following error:
Cannot find module './ncurses_addon'

What version of node?

v0.4.7

I recently modified the wscript to work specifically with v0.6.x since it's in v0.6.x that the build subdirectory changed from 'default' to 'Release.'

For v0.4.x you'll currently need to manually copy or create a symlink to build/default/node_addon.node in the module's root directory. It should be a simple fix to the wscript to instead check for which subdirectory exists and then make the symlink based on that.