-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
bugSomething isn't workingSomething isn't workingp1This is a high priority issueThis is a high priority issue
Description
Self-service
- I'd be willing to implement a fix
Describe the bug
[email protected] throws error Cannot find module 'temp'
Steps to reproduce
Follow example from README
$ cat example.ts
import AWS from "aws-sdk";
const client = new AWS.DynamoDB();
const response = await client.listTables({}).promise();
$ npx aws-sdk-js-codemod@latest -t v2-to-v3 example.ts Observed behavior
Error is thrown
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
node:internal/modules/cjs/loader:1252
throw err;
^
Error: Cannot find module 'temp'
Require stack:
- /Users/trivikr/.npm/_npx/7c563efbb7515419/node_modules/jscodeshift/dist/Runner.js
- /Users/trivikr/.npm/_npx/7c563efbb7515419/node_modules/aws-sdk-js-codemod/dist/cli.js
- /Users/trivikr/.npm/_npx/7c563efbb7515419/node_modules/aws-sdk-js-codemod/bin/aws-sdk-js-codemod
at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
at Function._load (node:internal/modules/cjs/loader:1075:27)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Module.require (node:internal/modules/cjs/loader:1340:12)
at require (node:internal/modules/helpers:141:16)
at Object.<anonymous> (/Users/trivikr/.npm/_npx/7c563efbb7515419/node_modules/jscodeshift/dist/Runner.js:17:14)
at Module._compile (node:internal/modules/cjs/loader:1546:14)
at Object..js (node:internal/modules/cjs/loader:1689:10)
at Module.load (node:internal/modules/cjs/loader:1318:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/trivikr/.npm/_npx/7c563efbb7515419/node_modules/jscodeshift/dist/Runner.js',
'/Users/trivikr/.npm/_npx/7c563efbb7515419/node_modules/aws-sdk-js-codemod/dist/cli.js',
'/Users/trivikr/.npm/_npx/7c563efbb7515419/node_modules/aws-sdk-js-codemod/bin/aws-sdk-js-codemod'
]
}
Node.js v22.11.0Expected behavior
No error is thrown
Environment
It's v2.4.0, but the error is thrown for detecting version too.
Need to install the following packages:
[email protected]
Ok to proceed? (y) yAdditional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingp1This is a high priority issueThis is a high priority issue