mscdex / node-ncurses

An ncurses binding for node.js
MIT License
386 stars 25 forks source link

Cannot find module './ncurses_addon' #14

Closed ghost closed 12 years ago

ghost commented 12 years ago

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'

mscdex commented 12 years ago

What version of node?

ghost commented 12 years ago

v0.4.7

mscdex commented 12 years ago

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.