I installed the Sublime Text NodeJS plugin, which provides a NodeJS build that looks like this:
{
"cmd": ["node", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.js",
"shell":true,
"encoding": "cp1252",
"windows":
{
"cmd": ["taskkill /F /IM node.exe & node", "$file"]
},
"linux":
{
"cmd": ["killall node; node", "$file"]
}
}
I compiled nodemyself and located in: /opt/node/v0.10.24. The full path to bunkering is equal /opt/node/v0.10.24/bin/node.
I am testing this with a simple file containing console.log('Hello World');
When starting the build system, I get:
/Users/jviotti/Desktop/test.js: node: command not found
[Finished in 0.0s with exit code 127]
I tried adding pathto the assembly as follows:
"path": "/opt/node/v0.10.24/bin",
And when I start the assembly, I get simply:
[Finished in 0.1s]
Please note that console log is not printed. What am I missing?
EDIT: This is the NodeJS plugin I use: https://github.com/tanepiper/SublimeText-Nodejs
source
share