volta icon indicating copy to clipboard operation
volta copied to clipboard

AWS cli breaks with error on volta

Open jonyeezs opened this issue 3 years ago • 2 comments

This is the error i get using aws cli.

> aws --help
/home/jonathanyee/.volta/bin/_awsx:1: no such file or directory: ^@^A^@^@^@0S
[2] 23928
/home/jonathanyee/.volta/bin/_awsx:2: unmatched "
/home/jonathanyee/.volta/bin/_awsx:2: parse error in command substitution
[3] 23929
/home/jonathanyee/.volta/bin/_awsx:6: bad pattern: \M-^]\M-\n(^N\M-%V^H^D\M-P^P ^@^B^PB^P\M-^D\M-^\^A^B ^B\M-^P^P^H^@^G\M-^@@^H\M-0:\n\M-@\M-#\M-^Q0\M-^@^G0 AQ^?\M-K^Pj$^P^E^P^@^R
[2]  - 23928 exit 1
[3]  + 23929 exit 1     ��(�� B�� ���: ���0�0 AQ�j$
/home/jonathanyee/.volta/bin/_awsx:7: command not found: ^F
[2] 23933
/home/jonathanyee/.volta/bin/_awsx:10: unmatched "
/home/jonathanyee/.volta/bin/_awsx:9: parse error in command substitution
/home/jonathanyee/.volta/bin/_awsx:8: bad pattern: ^@(\M-^T^@9^B\M-^@8\M-!\t^U(^G(\M-^B^HD^@@^H\M-3\M-`(\M-A\M-^A\M-C\M-@\M-H ^@^L^\\M-Oc^@\M-0\M-^PT\M-@\M-^X\M-<\M-S%\M-z\M-^D^U\M-`\M-,s\M-"\M-W\t\M-^P^T^X^W^Hih^H\M-CX\M- \M-\t^P\M-|zT\M-)\M-M^B0^Y\M-Q\M-P^@^L^A@@f@^ED^Rc^R^@\M-^Q-^H^D\M-^@\M-^F\M-@7Q\tj ^B^V F0\M-Q^B\n^B\M-^@^R\M-^@@\M-^@^Bp^@(\M-_(\M-RE^B

Note: i've ensured enhancd doesn't hook onto cd

jonyeezs avatar Apr 27 '22 06:04 jonyeezs

Hi @jonyeezs, thanks for the report! I'm not 100% sure, but the string of unprintable characters makes me think that something is attempting to pass the volta binary (or one of the shims that symlink to it) directly to node, which is then understandably failing since binaries aren't JS code.

Which npm package is this from? We can potentially try to take a quick look to see how it's structured / what it's attempting to do under the hood.

charlespierce avatar May 04 '22 23:05 charlespierce

Could be a combination of things. May take awhile from reproducing it as I've stop using Volta just to get by

This is on Ubuntu (or any Linux distro) But the two things are

  1. Enhancd - https://github.com/b4b4r07/enhancd
  2. AWS cli - https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

On Thu, 5 May 2022, 9:29 am Charles Pierce, @.***> wrote:

Hi @jonyeezs https://github.com/jonyeezs, thanks for the report! I'm not 100% sure, but the string of unprintable characters makes me think that something is attempting to pass the volta binary (or one of the shims that symlink to it) directly to node, which is then understandably failing since binaries aren't JS code.

Which npm package is this from? We can potentially try to take a quick look to see how it's structured / what it's attempting to do under the hood.

— Reply to this email directly, view it on GitHub https://github.com/volta-cli/volta/issues/1217#issuecomment-1118024173, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACS4BBVYIACTE2VMREHX4JDVIMB4DANCNFSM5UOBZCZA . You are receiving this because you were mentioned.Message ID: @.***>

jonyeezs avatar May 05 '22 11:05 jonyeezs