starting a js module (main.js)

22 views
Skip to first unread message

Barry Gordon

unread,
Jul 21, 2016, 6:12:50 PM7/21/16
to nodejs
I have a Pi 3 all set up with node. I am having trouble starting the main module of the project.
The js module is /home/pi/aws_proxy/app/main.js.
The following is reported when I try and start the module:

/home/pi/aws_proxy/app/main.js: 1: /home/pi/aws_proxy/app/main.js: 
: not found
/home/pi/aws_proxy/app/main.js: 2: /home/pi/aws_proxy/app/main.js: Syntax error: "(" unexpected


What Am I missing?  Any assistance appreciated


Ryan Schmidt

unread,
Jul 23, 2016, 1:59:16 PM7/23/16
to nod...@googlegroups.com
Can you show us the contents of main.js? What version of node are you using?


Reply all
Reply to author
Forward
0 new messages