## 事象
```shell
ERROR Cannot find module 'typescript'
Require stack:
- <repository>node_modules\fork-ts-checker-webpack-plugin\lib\typescript-reporter\TypeScriptReporterConfiguration.js
- <repository>node_modules\fork-ts-checker-webpack-plugin\lib\ForkTsCheckerWebpackPluginConfiguration.js
- <repository>node_modules\fork-ts-checker-webpack-plugin\lib\ForkTsCheckerWebpackPlugin.js
- <repository>node_modules\fork-ts-checker-webpack-plugin\lib\index.js
- <repository>node_modules\@nuxt\typescript-build\dist\index.js
```
## 原因
[[npm7]]でインストール時に作成した[[package-lock.json]]を使って、[[npm7]]より前のバージョン(npm6)でインストールしていたから。
## 解決方法
v2のlockfileではなく、v1のlockfileを使う必要がある。以下いずれかの方法をとる。
- [[npm7]]より前のバージョン(npm6など)を使う
- [[npm7]]のインストールコマンドで`--legacy-peer-deps`を指定する