73rhodes / Sublime-JSLint

JSLint for Sublime Text 2 and 3.
80 stars 14 forks source link

[WinError 2] The system cannot find the file specified #39

Closed DoloMike closed 9 years ago

DoloMike commented 9 years ago

[WinError 2] The system cannot find the file specified [cmd: ['node', '%APPDATA%/Sublime Text 3/Packages/JSLint/linter.js', ..........]

Node is in my PATH. I have a feeling the issue lies in the code where a "cmd" or "command" argument is formed.

For example, I had a similar problem with a JavaScript build file. In the build file, my original code was { "cmd": ["node", "$file"] }

It produced the same error I'm now receiving with JSLint. I resolved this error by using { "cmd": ["node", "$file"], "shell": true }

From what I understand, "shell": true is specific to windows and cmd.exe I believe these issues are related and I hope this is helpful. Regardless, if someone can help me resolve this I would GREATLY appreciate it.