Skip to content

shell_cmd": "taskkill /F /IM node.exe & node $file not working with Sublime Text 3 on Windows 7 #90

Description

@leem32

The line in sublime-build "shell_cmd": "taskkill /F /IM node.exe & node $file" is causing an error ERROR: The process "node.exe" not found..

If I comment out the taskkill line the error disappears.

I've added "node_command": "C:\\Program Files\\nodejs\\node.exe" in user sublime-settings.

How can I fix this??

{
  "cmd": ["node", "$file"],
  "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
  "selector": "source.js",
  "shell": true,
  "encoding": "cp1252",
  "windows":
    {
        "shell_cmd": "taskkill /F /IM node.exe & node $file"
    },
    "linux":
    {
        "shell_cmd": "killall node; /usr/bin/env node $file"
    },
    "osx":
    {
        "shell_cmd": "killall node; /usr/bin/env node $file"
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions