title: Duplicate Identifier when local node types are installed
body: <p>I am trying to run <code>tsc</code> on a project, but I am getting an error saying that there are two duplicated identifiers <code>URL</code> and <code>URLSearchParams</code>.</p>
  
  <p>I have typescript installed globally, and in my project I have <code>@types/node</code>. </p>
  
  <p>However when I install <code>@types/node</code> in the project I then get this error:</p>
  
  <pre><code>../../../../../.nvm/versions/node/v10.0.0/lib/node_modules/typescript/lib/lib.es2016.full.d.ts(13404,11): error TS2300: Duplicate identifier 'URL'.
  ../../../../../.nvm/versions/node/v10.0.0/lib/node_modules/typescript/lib/lib.es2016.full.d.ts(13420,13): error TS2300: Duplicate identifier 'URL'.
  ../../../../../.nvm/versions/node/v10.0.0/lib/node_modules/typescript/lib/lib.es2016.full.d.ts(13427,11): error TS2300: Duplicate identifier 'URLSearchParams'.
  ../../../../../.nvm/versions/node/v10.0.0/lib/node_modules/typescript/lib/lib.es2016.full.d.ts(13454,13): error TS2300: Duplicate identifier 'URLSearchParams'.
  ../../../../../.nvm/versions/node/v10.0.0/lib/node_modules/typescript/lib/lib.es2016.full.d.ts(15740,13): error TS2300: Duplicate identifier 'URL'.
  ../../../../../.nvm/versions/node/v10.0.0/lib/node_modules/typescript/lib/lib.es2016.full.d.ts(15741,13): error TS2300: Duplicate identifier 'URLSearchParams'.
  ../../../../../.nvm/versions/node/v10.0.0/lib/node_modules/typescript/lib/lib.es2016.full.d.ts(16503,11): error TS2300: Duplicate identifier 'URLSearchParams'.
  node_modules/@types/node/index.d.ts(2381,15): error TS2300: Duplicate identifier 'URL'.
  node_modules/@types/node/index.d.ts(2399,15): error TS2300: Duplicate identifier 'URLSearchParams'.
  node_modules/@types/node/index.d.ts(2417,14): error TS2661: Cannot export 'URL'. Only local declarations can be exported from a module.
  node_modules/@types/node/index.d.ts(2417,19): error TS2661: Cannot export 'URLSearchParams'. Only local declarations can be exported from a module.
  </code></pre>
  
  <p>Not sure what is wrong and why I am getting this error.</p>
  
  <p>If I remove the <code>node types</code> from my project I get an error in other dependencies saying that it cannot find <code>net</code>, <code>http</code>, etc:</p>
  
  <pre><code>node_modules/@types/uuid/interfaces.d.ts(1,23): error TS2688: Cannot find type definition file for 'node'.
  node_modules/@types/uuid/interfaces.d.ts(4,48): error TS2304: Cannot find name 'Buffer'.
  node_modules/@types/uws/index.d.ts(7,23): error TS2688: Cannot find type definition file for 'node'.
  node_modules/@types/uws/index.d.ts(10,23): error TS2307: Cannot find module 'http'.
  node_modules/@types/uws/index.d.ts(11,24): error TS2307: Cannot find module 'https'.
  node_modules/@types/uws/index.d.ts(12,22): error TS2307: Cannot find module 'net'.
  </code></pre>
  
  <p><strong>tsconfig.json</strong></p>
  
  <pre><code>{
    "compilerOptions": {
      "target": "es2016",
      "module": "system",
      "strict": true,
      "outFile": "../../lib/client/red5.js",
      "sourceMap": true,
      "declaration": true
    },
    "include": [
      "./Connector.ts",
      "**/*.ts"
    ]
  }
  </code></pre>
  
  <p>dependencies in <strong>package.json</strong></p>
  
  <pre><code>"dependencies": {
    "@types/get-port": "^3.2.0",
    "@types/node": "^10.0.0",
    "@types/uuid": "^3.4.3",
    "@types/uws": "^0.13.2",
    "get-port": "^3.2.0",
    "uuid": "^3.2.1",
    "uws": "^9.148.0"
  },
  "devDependencies": {
    "uglify-es": "^3.3.9"
  }
  </code></pre>