help
help copied to clipboard
Cannot find module 'typescript'
Details
I'm trying to run CDK deploy on the GitHub runner (ubuntu build) and I'm getting this below exception. I have typescript and ts-node added to the package.json under devDependencies. The code is running fine locally but not on the runner.
Cannot find module 'typescript'
Require stack:
- /root/.npm/_npx/13740/lib/node_modules/ts-node/dist/util.js
- /root/.npm/_npx/13740/lib/node_modules/ts-node/dist/bin.js
Node.js version
Node version 14.
Example code
No response
Operating system
ubuntu
Scope
NA
Module and version
Not applicable.
ts-node needs a version of TypeScript near it - you need to npm i typescript - you can follow the ts-node installation instructions to learn more :)
There has been no activity on this issue for 11 months. The help repository works best when sustained engagement moves conversation forward. The issue will be closed in 1 month. If you are still experiencing this issue on the latest supported versions of Node.js, please leave a comment.
(This issue seems completed; closing)