jeudi 2 avril 2015

Why is my JavaScript builder that I set up with node.js in Sublime Text 3 not showing the build results?

I'm a fairly new JavaScript programmer and I just downloaded Sublime Text 3. I tried to install node on it so that I can build with javascript but whenever I try and run a simple console.log("Hello World") on it with ctrl + b, it doesn't display anything but just says [Finished in 0.2s] with out actually logging anything to the console.


My sublime build folder for Node is titled Node.sublime-build and contains this:



{
"cmd": ["node.exe", "${file}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.js",
"variants":
[
{
"name": "Run",
"cmd":["node.exe", "${file}"]
}
]
}


I've searched everywhere for an answer but I just cant figure out why the results don't display. If you know whats wrong please let me know.


Thanks.


Aucun commentaire:

Enregistrer un commentaire