<p dir="auto">Sometimes the VS Code window just flashes in the task bar but is not stored to the foreground (e.g. when running code again from the command line). See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="107679327" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/2867" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/2867/hovercard" href="https://github.com/electron/electron/issues/2867">electron/electron#2867</a></p>
<ul dir="auto">
<li>VSCode Version: Version 1.3.0-insider (1.3.0-insider) (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/6bc81df453ab2156d2630fbb89ad7d0c80620420/hovercard" href="https://github.com/microsoft/vscode/commit/6bc81df453ab2156d2630fbb89ad7d0c80620420"><tt>6bc81df</tt></a>)</li>
<li>OS Version: OS X 10.11.5</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<p dir="auto">Trying to launch a Node JS app give an error:  Cannot launch debug target (spawn node ENOENT).</p>
<p dir="auto">Using Homebrew installed Nodejs (path to node command is /usr/local/bin/node)</p>
<p dir="auto">The bash login path, which contains /usr/local/bin, does not seem to be included when trying to run the app.</p>
<p dir="auto">Launch.json contains:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
    &quot;version&quot;: &quot;0.2.0&quot;,
    &quot;configurations&quot;: [
        {
            &quot;name&quot;: &quot;Launch&quot;,
            &quot;type&quot;: &quot;node&quot;,
            &quot;request&quot;: &quot;launch&quot;,
            &quot;program&quot;: &quot;${workspaceRoot}/nodeapp/server.js&quot;,
            &quot;stopOnEntry&quot;: false,
            &quot;args&quot;: [],
            &quot;cwd&quot;: &quot;${workspaceRoot}&quot;,
            &quot;runtimeExecutable&quot;: null,
            &quot;runtimeArgs&quot;: [
                &quot;--nolazy&quot;
            ],
            &quot;env&quot;: {
                &quot;NODE_ENV&quot;: &quot;development&quot;
            },
            &quot;externalConsole&quot;: false,
            &quot;sourceMaps&quot;: false,
            &quot;outDir&quot;: null
        },
        {
            &quot;name&quot;: &quot;Attach&quot;,
            &quot;type&quot;: &quot;node&quot;,
            &quot;request&quot;: &quot;attach&quot;,
            &quot;port&quot;: 5858,
            &quot;sourceMaps&quot;: false,
            &quot;outDir&quot;: null,
            &quot;localRoot&quot;: &quot;${workspaceRoot}&quot;,
            &quot;remoteRoot&quot;: null
        }
    ]
}"><pre class="notranslate"><code class="notranslate">{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "node",
            "request": "launch",
            "program": "${workspaceRoot}/nodeapp/server.js",
            "stopOnEntry": false,
            "args": [],
            "cwd": "${workspaceRoot}",
            "runtimeExecutable": null,
            "runtimeArgs": [
                "--nolazy"
            ],
            "env": {
                "NODE_ENV": "development"
            },
            "externalConsole": false,
            "sourceMaps": false,
            "outDir": null
        },
        {
            "name": "Attach",
            "type": "node",
            "request": "attach",
            "port": 5858,
            "sourceMaps": false,
            "outDir": null,
            "localRoot": "${workspaceRoot}",
            "remoteRoot": null
        }
    ]
}
</code></pre></div>