<p dir="auto">Following the instructions in the <a href="https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run-from-source">contribution guidelines</a>, I received the following error when I ran <code class="notranslate">gulp watch</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ gulp watch

fs.js:549
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                                                  ^

Error: ENOENT: no such file or directory, open '/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/typescript/lib.d.ts'
    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.readFileSync (fs.js:397:15)
    at new DefaultLibScriptSnapshot (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/builder.js:354:32)
    at Object.createTypeScriptBuilder (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/builder.js:29:44)
    at Object.create (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/index.js:28:28)
    at createCompile (/Users/dem/proj/vscode/gulpfile.js:43:15)
    at compileTask (/Users/dem/proj/vscode/gulpfile.js:74:16)
    at Object.&lt;anonymous&gt; (/Users/dem/proj/vscode/gulpfile.js:100:47)
    at Module._compile (module.js:435:26)"><pre class="notranslate"><code class="notranslate">$ gulp watch

fs.js:549
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                                                  ^

Error: ENOENT: no such file or directory, open '/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/typescript/lib.d.ts'
    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.readFileSync (fs.js:397:15)
    at new DefaultLibScriptSnapshot (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/builder.js:354:32)
    at Object.createTypeScriptBuilder (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/builder.js:29:44)
    at Object.create (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/index.js:28:28)
    at createCompile (/Users/dem/proj/vscode/gulpfile.js:43:15)
    at compileTask (/Users/dem/proj/vscode/gulpfile.js:74:16)
    at Object.&lt;anonymous&gt; (/Users/dem/proj/vscode/gulpfile.js:100:47)
    at Module._compile (module.js:435:26)
</code></pre></div>
<p dir="auto">I resolved the error by:</p>
<ol dir="auto">
<li>Creating the <code class="notranslate">~/proj/vscode/node_modules/gulp-tsb/lib/typescript/</code>folder, which was missing:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cd ~/proj/vscode/node_modules/gulp-tsb/lib/
mkdir typescript"><pre class="notranslate"><code class="notranslate">cd ~/proj/vscode/node_modules/gulp-tsb/lib/
mkdir typescript
</code></pre></div>
<ol start="2" dir="auto">
<li>
<p dir="auto">Copying <code class="notranslate">~/proj/vscode/out/vs/languages/typescript/common/lib/lib.d.ts</code> into that new <code class="notranslate">typescript</code> folder:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cp ~/proj/vscode/out/vs/languages/typescript/common/lib/lib.d.ts ~/proj/vscode/node_modules/gulp-tsb/lib/typescript"><pre class="notranslate"><code class="notranslate">cp ~/proj/vscode/out/vs/languages/typescript/common/lib/lib.d.ts ~/proj/vscode/node_modules/gulp-tsb/lib/typescript
</code></pre></div>
</li>
</ol>
<p dir="auto"><strong>Additional information:</strong></p>
<ul dir="auto">
<li>I didn't have mocha or gulp installed before trying to build Visual Studio Code</li>
<li>This is on the master branch</li>
<li>I'm able to duplicate this error every time I clone a new copy of the repository</li>
</ul>
<p dir="auto">If there is any other information you need, I'm happy to help!</p>
<p dir="auto">I <em>really</em> miss proper tabs for open files (like VS proper), and the ability to rip a tab out into its own window.</p>