Community
cancel
Showing results for 
Search instead for 
Did you mean: 
CCHIT1
Beginner
923 Views

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

Jump to solution

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)

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

at startup (node.js:139:18)

at node.js:968:3

1 Solution
CCHIT1
Beginner
92 Views

SOLVED : By default the package is uploaded to node_app_slot folder hence to resolve this issue proceed with all commands in node_app_slot over the shell of the board while using node to execute programs.

View solution in original post

1 Reply
CCHIT1
Beginner
93 Views

SOLVED : By default the package is uploaded to node_app_slot folder hence to resolve this issue proceed with all commands in node_app_slot over the shell of the board while using node to execute programs.

View solution in original post

Reply