I try to use sublime-text 2, installed Nodejs for Windows, the Nodejs plugin through package management, and I get the following error:
ERROR: process <node.exe "not found.
Incorrect file name, directory name, or volume name.
[Finished at 0.1 with exit code 1]
I have a setting as a user environment variable: NODE_PATH: C: \ Program Files \ nodejs \ node.exe My system variables have PATH: C: \ Program Files \ nodejs \
My Nodejs.sublime settings are set as follows:
{
// save before running commands
"save_first": true,
// if present, use this command instead of plain "node"
// e.g. "/usr/bin/node" or "C:\bin\node.exe"
"node_command": "C:/Program Files/nodejs/node.exe",
// Same for NPM command
"npm_command": false,
// as 'NODE_PATH' environment variable for node runtime
"node_path": "C:/Program Files/nodejs/node.exe",
"expert_mode": false,
"ouput_to_new_tab": false
}
My Nodejs.sublime-build is configured as follows:
{
"cmd": ["C:/Program Files/nodejs/node.exe", "$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"]
}
}
JSHint, Nodejs, ( "C:/Program Files/nodejs/node.exe" ) JSHint !
, Nodejs?