codeboost / opencv-node

Use OpenCV with node.js
54 stars 9 forks source link

Cannot find module '../build/Release/addon.node' #9

Open rgap opened 11 years ago

rgap commented 11 years ago

Hi

In ubuntu

I did

npm install -g opencv-node

and put all opencv-node files in opencv-node_CPP folder and i get this error:

rgap@ubuntu:~/opencv-node_CPP$ coffee scripts/tests.coffee Error: Cannot find module '../build/Release/addon.node' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:362:17) at require (module.js:378:17) at Object. (/home/rgap/opencv-node_CPP/scripts/opencv.coffee:4:14) at Object. (/home/rgap/opencv-node_CPP/scripts/opencv.coffee:41:4) at Module._compile (module.js:449:26) at Object.require.extensions..coffee (/usr/lib/coffee-script/lib/coffee-script/coffee-script.js:21:21) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12)

rgap commented 11 years ago

ok its not an issue

i did

$ node-gyp rebuild $ npm install

but not all examples run in ubuntu 12