Can not find module 'bonescript'

I’m trying to run a simple script using the bonescript library on a BeagleBone with Linux Debian installed, and when I run in the Cloud9 IDE, it works fine. My script is called blinkled.js and when I try to run in line command, like “./blinkled.js”, it is shown a long error message that starts with “Can not find module ‘bonescript’”.

How can I correct that?