Can't run bonescript while using VNC

Hi All,

I am having some problems running bonescript without cloud IDE 9. The weird thing is when I run the javascript file that requires bonescript while SSH’d as root it works perfectly, the problem is when I VNC into the beaglebone and try to run the exact same script.

Here is some information that may help:

OS: Debian 7.8 (Wheezy)
Board version: Beaglebone black rev. B6 (as printed on the underside of the board)

Kernel: 3.8.13-bone50

When I try to run the javascript file that requires bonescript while VNC’d I get the following output:

throw err;
Error: Cannot find module ‘bonescript’
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/debian/testBBB.js:1:71)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)

I am trying to run bonescript without using cloudIDE9 since I do not have internet connectivity where the BBB will be installed.

I really appreciate any help. Please let me know if something I said above is unclear.


This is a good question. I hope someone answers for you Gabe.

- Wes

Can you try the following:

node -v
npm -v
npm install -g bonescript

then try the script again and let us know what happens?