action icon indicating copy to clipboard operation
action copied to clipboard

Installing executables with Volta

Open DaniloGT opened this issue 2 years ago • 2 comments

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 avatar Jan 02 '24 19:01 DaniloGT

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

DaniloGT avatar Jan 02 '24 20:01 DaniloGT

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.

rwjblue avatar Jan 15 '24 16:01 rwjblue