[Node] Difficulty deploying on AWS

19 views
Skip to first unread message

Eduardo Pessoa

unread,
Jun 4, 2017, 6:31:44 PM6/4/17
to nodejs
Hello guys, 

I am putting an app to run on AWS (linux ubuntu), on my machine was running everything right, when I went to AWS, the version of the node was different, I updated to the last (stable) 8.0.21, but at the time of running The script gave a lot of errors: - I was using the summarized form of using functions, instead of using function (req, res) {, I did (req, res) => {; This made a mistake and I changed all the points in the program, but now it's giving:

/home/ubuntu/node/server.js:54
    var smtpTransport = nodemailer.createTransport({
    ^^^
SyntaxError: Unexpected token var
    at Module._compile (module.js:437:25)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

I do not know if it's any configuration, help me ....

Eduardo Pessoa
Reply all
Reply to author
Forward
0 new messages