<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/Node</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>.  (Please ask any appropriate questions there).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond.
<ul dir="auto">
<li>Authors: @....</li>
</ul>
</li>
</ul>
<p dir="auto">I wanted Node Typings in my Typescript project so I entered this command:</p>
<p dir="auto">npm install @types/node --save<br>
Which resulted in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error TS2403: Subsequent variable declarations must have the same type.
Variable 'require' must be of type 'Require', but here has type 'NodeRequire'."><pre lang="c:/xyz/node_modules/@types/node/index.d.ts(89,13)" class="notranslate"><code class="notranslate">error TS2403: Subsequent variable declarations must have the same type.
Variable 'require' must be of type 'Require', but here has type 'NodeRequire'.
</code></pre></div>
<p dir="auto">My machine had node version 7.0.3 The installed types was for version + @types/node@7.0.28<br>
If I uninstall the typings my project compiles with no problems.</p>
<p dir="auto">It appears as if the typings content is not correct per the error message!<br>
The failing line of code in index.d.ts<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10676026/26839642-43413762-4aa9-11e7-9542-78819504c9df.GIF"><img src="https://user-images.githubusercontent.com/10676026/26839642-43413762-4aa9-11e7-9542-78819504c9df.GIF" alt="noderequire" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">This is the TSConfig content:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    &quot;compilerOptions&quot;: {
        &quot;module&quot;: &quot;amd&quot;,
        &quot;moduleResolution&quot;: &quot;node&quot;,
        &quot;target&quot;: &quot;es5&quot;,
        &quot;noImplicitAny&quot;: false,
        &quot;jsx&quot;: &quot;react&quot;,
        &quot;sourceMap&quot;: false,
        &quot;baseUrl&quot;: &quot;.&quot;,
        &quot;paths&quot;: {
            &quot;OfficeFabric/*&quot;: [
                &quot;node_modules/office-ui-fabric-react/lib-amd/*&quot;
            ]
        }
    } 
}"><pre lang="{" class="notranslate"><code class="notranslate">    "compilerOptions": {
        "module": "amd",
        "moduleResolution": "node",
        "target": "es5",
        "noImplicitAny": false,
        "jsx": "react",
        "sourceMap": false,
        "baseUrl": ".",
        "paths": {
            "OfficeFabric/*": [
                "node_modules/office-ui-fabric-react/lib-amd/*"
            ]
        }
    } 
}
</code></pre></div>
<p dir="auto">Typescript version is 2.2.2</p>
<p dir="auto">Root Cause: Require.js had a var named Require in it's index.d.ts, and so did Node.js in it's index.d.ts. Renaming one of them fixed the problem.  But there is the --types option for TSConfig too.</p>
<p dir="auto"><strong>TypeScript Version:</strong>  2.2.2</p>
<p dir="auto"><strong>Code</strong><br>
This is my TSCConfig file content</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
    &quot;compilerOptions&quot;: {
        &quot;module&quot;: &quot;amd&quot;,
        &quot;moduleResolution&quot;: &quot;node&quot;,
        &quot;target&quot;: &quot;es5&quot;,
        &quot;noImplicitAny&quot;: false,
        &quot;jsx&quot;: &quot;react&quot;,
        &quot;sourceMap&quot;: false,
        &quot;baseUrl&quot;: &quot;.&quot;,
        &quot;paths&quot;: {
            &quot;OfficeFabric/*&quot;: [
                &quot;node_modules/office-ui-fabric-react/lib-amd/*&quot;
            ]
        }
    } 
}"><pre class="notranslate"><span class="pl-kos">{</span>
    <span class="pl-s">"compilerOptions"</span>: <span class="pl-kos">{</span>
        <span class="pl-s">"module"</span>: <span class="pl-s">"amd"</span><span class="pl-kos">,</span>
        <span class="pl-s">"moduleResolution"</span>: <span class="pl-s">"node"</span><span class="pl-kos">,</span>
        <span class="pl-s">"target"</span>: <span class="pl-s">"es5"</span><span class="pl-kos">,</span>
        <span class="pl-s">"noImplicitAny"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
        <span class="pl-s">"jsx"</span>: <span class="pl-s">"react"</span><span class="pl-kos">,</span>
        <span class="pl-s">"sourceMap"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
        <span class="pl-s">"baseUrl"</span>: <span class="pl-s">"."</span><span class="pl-kos">,</span>
        <span class="pl-s">"paths"</span>: <span class="pl-kos">{</span>
            <span class="pl-s">"OfficeFabric/*"</span>: <span class="pl-kos">[</span>
                <span class="pl-s">"node_modules/office-ui-fabric-react/lib-amd/*"</span>
            <span class="pl-kos">]</span>
        <span class="pl-kos">}</span>
    <span class="pl-kos">}</span> 
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong><br>
After running npm install @ types/node --save<br>
The project should compile ok.<br>
<strong>Actual behavior:</strong><br>
The error message TS2403 is indicated.<br>
Uninstalling the node types fixes the problem.</p>
<p dir="auto">Could this be a clash between : module:"amd" and moduleresolution: "node"</p>
<p dir="auto">Current Node version is 7.0.3<br>
The installed types was for version + @types/node@7.0.28</p>