0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[AWS CDK] cdk diffで「Cannot find module 'typescript'」エラー発生

Posted at

要約

  • 昨日まで動いていたCDKが何故か動かくなる・・・
  • 対処方法をWEBで調べたが日本語記事がなかなか見つからなかったので、メモ
  • 細かい原因等は追えていません。

エラーの発生内容

$ cdk diff
npx: installed 14 in 1.02s
Cannot find module 'typescript'
Require stack:
- /home/xxxx/.npm/_npx/657/lib/node_modules/ts-node/dist/index.js
- /home/xxxx/.npm/_npx/657/lib/node_modules/ts-node/dist/repl.js
- /home/xxxx/.npm/_npx/657/lib/node_modules/ts-node/dist/bin.js
Subprocess exited with error 1

解消方法

  • 以下をインストールしました。
  • バージョンは個人の方の環境に合わせて下さい。
sudo npm i -g ts-node@10.2.0
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?