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

Installing executables with Volta #140

Open
DaniloGT opened this issue Jan 2, 2024 · 2 comments
Open

Installing executables with Volta #140

DaniloGT opened this issue Jan 2, 2024 · 2 comments

Comments

@DaniloGT
Copy link

DaniloGT commented Jan 2, 2024

Hi!
I have an issue while setting up Volta and aws cdk.
I would like to use cdk cli in the later steps (cdk synth, cdk deploy) but no executable is installed. However, this works flawlessly in local.

Git action
image

Local
image

@DaniloGT
Copy link
Author

DaniloGT commented Jan 2, 2024

I didn't solve the problem, but I got it working by changing cdk deploy to node_modules/aws-cdk/bin/cdk deploy

@rwjblue
Copy link
Collaborator

rwjblue commented Jan 15, 2024

I think you'll need to share more about how you are using the action for us to truly understand enough to help you.

From the limited information above, I think that you have ran volta install aws-cdk (or whatever package name) locally. That is what enables the cdk commands (without something like npx cdk or yarn cdk to work).

In general, using either npx or yarn here (or directly executing within ./node_modules/.bin/cdk) is the right path forward.

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

No branches or pull requests

2 participants