pkgxdev / pkgx

the last thing you’ll install
https://pkgx.sh
Apache License 2.0
8.81k stars 1.36k forks source link

warn: parse failure: valkey.io #1014

Closed alonronin closed 2 weeks ago

alonronin commented 2 weeks ago

i have this error when running pkgx commands on the terminal. (pkgx 1.1.6 on macox sonoma 14.5)

for example:

$ node -v

then i run it with x command i get:

env +node && node -v 
warn: parse failure: valkey.io
v22.3.0 
Screenshot 2024-06-23 at 17 11 10

it doesn't happen if i run pkgx node -v however if i install node with pkgx it happens every time i run node commands.

dosubot[bot] commented 2 weeks ago

Hey there, @alonronin! I'm here to help you with any bugs, questions, or contributions you may have. Let's tackle this issue together!

To resolve the warn: parse failure: valkey.io warning when running Node.js commands installed with pkgx on macOS Sonoma 14.5 using zsh, you can try the following steps:

  1. Ensure pkgx is up to date:

    brew upgrade pkgx
  2. Reinstall pkgx:

    curl -LSsf pkgx.sh | sh
  3. Sync the pantry:

    pkgx --sync
  4. Check for cached packages and update them:

    pkgx mash pkgx/cache upgrade

If the issue persists, it might be related to a specific package or configuration. You can also try uninstalling and reinstalling the specific Node.js package:

pkgx deintegrate
pkgx install node@latest

Additionally, you can enable debug mode to get more detailed information about the warning:

pkgx --verbose=2

or set the environment variable:

export DEBUG=1

This will provide more context on the parse failure and help diagnose the issue further [1][2].

To continue talking to Dosu, mention @dosu.

jhheider commented 2 weeks ago

Usually this is a minor file corruption in your local pantry. If so, pkgx --sync should fix it.

alonronin commented 2 weeks ago

Usually this is a minor file corruption in your local pantry. If so, pkgx --sync should fix it.

solve it! thanx. great bot, btw!