-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Labels
bugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
Description
Describe the bug
failed to run cdk init with nodejs 22.5.0 environment
==> /opt/homebrew/Cellar/aws-cdk/2.149.0/bin/cdk list
node:internal/modules/cjs/loader:1222
throw err;
^
Error: Cannot find module 'constructs'
Require stack:
- /private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/node_modules/aws-cdk-lib/core/lib/stack.js
- /private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/node_modules/aws-cdk-lib/core/lib/index.js
- /private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/node_modules/aws-cdk-lib/core/index.js
- /private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/node_modules/aws-cdk-lib/index.js
- /private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/bin/testapp.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
at Module._load (node:internal/modules/cjs/loader:1045:27)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at require (node:internal/modules/helpers:123:16)
at constructs_1 (/private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/node_modules/aws-cdk-lib/core/lib/stack.js:1:464)
at Object.<anonymous> (/private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/node_modules/aws-cdk-lib/core/lib/stack.js:1:2544)
at Module._compile (node:internal/modules/cjs/loader:1504:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1588:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/node_modules/aws-cdk-lib/core/lib/stack.js',
'/private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/node_modules/aws-cdk-lib/core/lib/index.js',
'/private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/node_modules/aws-cdk-lib/core/index.js',
'/private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/node_modules/aws-cdk-lib/index.js',
'/private/tmp/aws-cdk-test-20240718-31116-9aq66x/testapp/bin/testapp.js'
]
}
Node.js v22.5.0
Expected Behavior
should pass
Current Behavior
failed
Reproduction Steps
- install node 22.5.0
- install cdk 2.149.0
- run cdk init
Possible Solution
No response
Additional Information/Context
relates to Homebrew/homebrew-core#177645
full build log, https://github.com/Homebrew/homebrew-core/actions/runs/9980021240/job/27594462685?pr=177645
CDK CLI Version
2.149.0
Framework Version
No response
Node.js Version
22.5.0
OS
macOS/Linux
Language
TypeScript
Language Version
No response
Other information
No response
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI