1 Reply Latest reply on Aug 29, 2016 11:03 AM by Chitrang

    Cannot find module '/home/root/blink.js'

    Chitrang

      Hi,

       

      I am pretty new to the Edison board, what I have achieved so far is as below :

       

      > Connected SSH

      > Built one project [node.js] and uploaded to edison board

      > I am not able to run the project using command Node main.js

      > It throws error

       

      root@Alpha:~# node main.js

      module.js:327

        throw err;

        ^

       

      Error: Cannot find module '/home/root/main.js'

        at Function.Module._resolveFilename (module.js:325:15)

        at Function.Module._load (module.js:276:25)Intel® Edison

        at Function.Module.runMain (module.js:441:10)

        at startup (node.js:139:18)

        at node.js:968:3