mac 下开发 nodejs 使用 sublime text2 出现的问题 安装了SublimeText-Nodejs,但是使用debug的时候出现
Node binary could not be found in PATH
Consider using the node_command setting for the Node plugin
PATH is: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/myMac/bin
why?求救!
      7 回复
    
    {
  "cmd": ["killall node; /usr/local/bin/node $file", ""],
  // "cmd": ["killall node; /usr/local/bin/node $file", ""],
  "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
  "selector": "source.js",
  "shell":true,
  "encoding": "utf8",
  "windows":
    {
     "cmd": ["taskkill /F /IM node.exe & node", "$file"]
    },
  "linux":
    {
        "cmd": ["killall node; node", "$file"]
    }
}
我的build是这么改的才好使的
@gws321 是不是因为你没有配置Package Settings啊 Preferences -> Package Settings -> Nodejs -> Settings - User
大概是这个样子的
{
  // 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": "/usr/local/bin/node",
  // Same for NPM command
  "npm_command": "/usr/local/bin/npm",
  // as 'NODE_PATH' environment variable for node runtime
  "node_path": false,
  "expert_mode": false,
  "ouput_to_new_tab": false
}