title: VS Code tasks 2.0 troubles
body: <p>I use:</p>
  
  <ul>
  <li>VS Code 1.14.1</li>
  <li>Tasks 2.0</li>
  <li>node 6.11.1</li>
  </ul>
  
  <p>My problem is that some tasks are working, and some are not.</p>
  
  <p>Here my <strong>tasks.json</strong> file.</p>
  
  <pre><code>{
      "version": "2.0.0",
      "tasks": [
          { // This task work fine.
              "label": "tsc",
              "type": "typescript",
              "tsconfig": "tsconfig.json",
              "group": {
                  "kind": "build",
                  "isDefault": true
              }
          },
          { // This task work fine.
              "taskName": "css",
              "type": "shell",
              "command": "./scss.sh",
              "windows": {
                  "command": "./scss.cmd"
              },
              "presentation": {
                  "reveal": "always",
                  "panel": "new"
              }
          },        
          { // This task not work. (See output #1 below)
              "taskName": "npm-install",
              "type": "shell",
              "command": "npm install",
              "problemMatcher": [],
              "presentation": {
                  "reveal": "always",
              }
          },
          { // This task not work. (See output #2 below)
              "type": "gulp",
              "task": "clean",
              "problemMatcher": []
          }            
      ]
  }
  </code></pre>
  
  <p><strong>Output #1</strong> - When I try to run npm task with type <strong>shell\npm</strong>, I get the same result:</p>
  
  <pre><code>&gt; Executing task: npm install &lt;
  
  
  Usage: npm &lt;command&gt;
  
  where &lt;command&gt; is one of:
      access, adduser, bin, bugs, c, cache, completion, config,
      ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get,
      help, help-search, i, init, install, install-test, it, link,
      list, ln, login, logout, ls, outdated, owner, pack, ping,
      prefix, prune, publish, rb, rebuild, repo, restart, root,
      run, run-script, s, se, search, set, shrinkwrap, star,
      stars, start, stop, t, tag, team, test, tst, un, uninstall,
      unpublish, unstar, up, update, v, version, view, whoami
  
  npm &lt;cmd&gt; -h     quick help on &lt;cmd&gt;
  npm -l           display full usage info
  npm help &lt;term&gt;  search for help on &lt;term&gt;
  npm help npm     involved overview
  
  Specify configs in the ini-formatted file:
      C:\Users\usr\.npmrc
  or on the command line via: npm &lt;command&gt; --key value
  Config info can be viewed via: npm help config
  
  npm@3.10.10 C:\Program Files\nodejs\node_modules\npm
  </code></pre>
  
  <p><strong>Output #2</strong> - When I try to run gulp task I get next (gulp package installed as global (<code>npm install gulp -g</code>),(I have <strong>gulpfile.js</strong> with correct content)):</p>
  
  <pre><code>&gt; Executing task: node_modules\.bin\gulp.cmd clean &lt;
  
  clean: node_modules.bingulp.cmd: command not found
  </code></pre>
  
  <p>I can use gulp, npm, node and other tools from cmd as usually, and it's works fine, but not in the VS Code.</p>
  
  <p>Current solution of this thing: </p>
  
  <ol>
  <li>Create batch files for each stuff.</li>
  <li>Create shell task for each batch file (as scss.cmd)</li>
  <li>Run those tasks.</li>
  </ol>
  
  <p>Yep, it works well, but you need to do too much action for simple tasks.</p>
  
  <p>What can you advise in this regard?</p>