Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-cdk doesn't work with pnpm dlx #4672

Closed
zkochan opened this issue May 5, 2022 · 0 comments · Fixed by #4682
Closed

aws-cdk doesn't work with pnpm dlx #4672

zkochan opened this issue May 5, 2022 · 0 comments · Fixed by #4682

Comments

@zkochan
Copy link
Member

zkochan commented May 5, 2022

@zkochan we use the aws-cdk which just installs a cmd line tool. Locally this works fine without any global install, it picks it up from the node_modules/.bin folder, but on the CI server for some reason, this doesn't work. The only other way to get it to work is to use npx aws-cdk:

image

unfortunately pnpx aws-cdk (or pnpm dlx aws-cdk) doesn't work:

image

possibly due to the mismatch that the package is called aws-cdk but the executable is called cdk? 🤷‍♂️

Ideally, we would like to use the same package manager for all tasks to save confusion and hence why we have historically done a global install of the package. It also obviously saves having to prefix every subsequent cdk command as we run several as part of the pipeline.

Originally posted by @caveman-dick in #4658 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant