現状
TypeScript を書いているときに以下のようなエラーが発生しました。
Cannot find name 'console'. Do you need to change your target library? Try changing the `lib` compiler option to include 'dom'
解決方法
node の 型情報ファイルが存在してなかったのが問題でした。
ということで以下のコマンドを実行し node の型情報を入れたら解決しました。
npm install @types/node