title: TypeDoc cannot find module typescript
body: <p>I am new to TypeScript and I got some existing TypeScript project.<br />
  For my better understanding of the project, I tried to use TypeDoc.<br />
  However, I got following error.<br />
  I tried to fix this issue following <a href="https://stackoverflow.com/questions/36140383/typedoc-complains-cannot-find-module">similar question</a> but didnt work.<br />
  Could anyone tell me what could be the approach to solve this problem?</p>
  <pre><code>internal/modules/cjs/loader.js:1032
    throw err;
    ^
  
  Error: Cannot find module 'typescript'
  Require stack:
  - /usr/local/lib/node_modules/typedoc/dist/lib/cli.js
  - /usr/local/lib/node_modules/typedoc/bin/typedoc
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1029:15)
      at Function.Module._load (internal/modules/cjs/loader.js:898:27)
      at Module.require (internal/modules/cjs/loader.js:1089:19)
      at require (internal/modules/cjs/helpers.js:73:18)
      at Object.&lt;anonymous&gt; (/usr/local/lib/node_modules/typedoc/dist/lib/cli.js:9:20)
      at Module._compile (internal/modules/cjs/loader.js:1200:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
      at Module.load (internal/modules/cjs/loader.js:1049:32)
      at Function.Module._load (internal/modules/cjs/loader.js:937:14)
      at Module.require (internal/modules/cjs/loader.js:1089:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
      '/usr/local/lib/node_modules/typedoc/dist/lib/cli.js',
      '/usr/local/lib/node_modules/typedoc/bin/typedoc'
    ]
  }
  </code></pre>
  <p><strong>package.json</strong>.</p>
  <pre><code>{
    &quot;name&quot;: &quot;project&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      &quot;dev&quot;: &quot;next dev&quot;,
      &quot;build&quot;: &quot;next build&quot;,
      &quot;start&quot;: &quot;next start&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@material-ui/core&quot;: &quot;^4.9.9&quot;,
      &quot;@material-ui/icons&quot;: &quot;^4.9.1&quot;,
      &quot;@material-ui/lab&quot;: &quot;^4.0.0-alpha.48&quot;,
      &quot;axios&quot;: &quot;^0.19.2&quot;,
      &quot;classnames&quot;: &quot;^2.2.6&quot;,
      &quot;date-fns&quot;: &quot;^2.12.0&quot;,
      &quot;gray-matter&quot;: &quot;^4.0.2&quot;,
      &quot;next&quot;: &quot;^9.3.4&quot;,
      &quot;prop-types&quot;: &quot;^15.7.2&quot;,
      &quot;react&quot;: &quot;16.13.1&quot;,
      &quot;react-dom&quot;: &quot;16.13.1&quot;,
      &quot;remark&quot;: &quot;^12.0.0&quot;,
      &quot;remark-html&quot;: &quot;^11.0.1&quot;,
      &quot;remark-slug&quot;: &quot;^6.0.0&quot;,
      &quot;swr&quot;: &quot;^0.2.3&quot;,
      &quot;three&quot;: &quot;^0.115.0&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@types/node&quot;: &quot;^13.11.0&quot;,
      &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^2.26.0&quot;,
      &quot;@typescript-eslint/parser&quot;: &quot;^2.26.0&quot;,
      &quot;babel-eslint&quot;: &quot;^10.1.0&quot;,
      &quot;eslint&quot;: &quot;^6.8.0&quot;,
      &quot;eslint-config-standard&quot;: &quot;^14.1.1&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.20.1&quot;,
      &quot;eslint-plugin-node&quot;: &quot;^11.0.0&quot;,
      &quot;eslint-plugin-promise&quot;: &quot;^4.2.1&quot;,
      &quot;eslint-plugin-react&quot;: &quot;^7.19.0&quot;,
      &quot;eslint-plugin-react-hooks&quot;: &quot;^2.5.1&quot;,
      &quot;eslint-plugin-standard&quot;: &quot;^4.0.1&quot;,
      &quot;typedoc&quot;: &quot;^0.17.7&quot;,
      &quot;typescript&quot;: &quot;^3.8.3&quot;
    }
  }
  </code></pre>