@Guilherme-Oliveira said in JS SyntaxError:
node C:\Users\XPTO\Desktop\Workspace\bot-ponto\index.js
Please try this for your batch file:
c: cd C:\Users\XPTO\Desktop\Workspace\bot-ponto node index.jsIf that doesn't work, please run where node to get the path to node like this:
C:\>where node C:\Program Files\nodejs\node.exeThen use the full path to node.exe in your batch file like this:
c: cd C:\Users\XPTO\Desktop\Workspace\bot-ponto "C:\Program Files\nodejs\node.exe" index.js