vfox icon indicating copy to clipboard operation
vfox copied to clipboard

[BUG]: nodejs plugins

Open Lucas-wdy opened this issue 1 year ago • 4 comments

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.

Lucas-wdy avatar Aug 05 '24 03:08 Lucas-wdy

Can you access this link?

Chance-fyi avatar Aug 05 '24 05:08 Chance-fyi

@Chance-fyi Yes, I can

Lucas-wdy avatar Aug 05 '24 05:08 Lucas-wdy

  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

Chance-fyi avatar Aug 05 '24 06:08 Chance-fyi

同样就的问题 windows

PS C:\Users\Administrator> vfox -v
vfox version 0.5.4
PS C:\Users\Administrator> vfox install [email protected]
plugin [PreInstall] method error: C:\Users\Administrator\.version-fox\plugin\nodejs\hooks\pre_install.lua:23: cannot perform concat operation between string and nil
stack traceback:
        C:\Users\Administrator\.version-fox\plugin\nodejs\hooks\pre_install.lua:23: in main chunk
        [G]: ?
failed to install nodejs

logyxiao avatar Sep 18 '24 08:09 logyxiao

这种问题,大多都是网络不好导致的,切换一下nodejs镜像源试试。

aooohan avatar Oct 23 '24 12:10 aooohan

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

vfox search nodejs no available version

设置代理也不行,本机可以访问 https://nodejs.org/dist/index.json

但是,卸载插件重新安装后又可以了 vfox remove nodejs vfox add nodejs

chenwenqin avatar Mar 04 '25 02:03 chenwenqin