version-fox / vfox

A cross-platform and extendable version manager with support for Java, Node.js, Flutter, .Net & more
https://vfox.lhan.me
Apache License 2.0
2.68k stars 94 forks source link

[BUG]: nodejs plugins #336

Open Lucas-wdy opened 1 month ago

Lucas-wdy commented 1 month ago

Version 0.5.4 OS macOS

Describe the bug

$vfox install nodejs@latest

plugin [PreInstall] method error: /Users/wangdy/.version-fox/plugin/nodejs/hooks/pre_install.lua:13: attempt to index a non-table object(nil) with key 'version'
stack traceback:
    /Users/wangdy/.version-fox/plugin/nodejs/hooks/pre_install.lua:13: in main chunk
    [G]: ?
failed to install nodejs

Screenshots[optional] If applicable, add screenshots to help explain your problem.

Chance-fyi commented 1 month ago

Can you access this link?

Lucas-wdy commented 1 month ago

@Chance-fyi Yes, I can

Chance-fyi commented 1 month ago
  1. Try to see if you can access it from the command line
  2. Check if the environment variable VFOX_NODEJS_MIRROR is set.
  3. Check if a proxy is set
  4. Try setting a proxy for vfox
    vfox config proxy.enable true
    vfox config proxy.url http://your_host:your_port