vfox
vfox copied to clipboard
[BUG]: nodejs plugins
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.
Can you access this link?
@Chance-fyi Yes, I can
- Try to see if you can access it from the command line
- Check if the environment variable
VFOX_NODEJS_MIRRORis set. - Check if a proxy is set
- Try setting a proxy for vfox
vfox config proxy.enable true
vfox config proxy.url http://your_host:your_port
同样就的问题 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
这种问题,大多都是网络不好导致的,切换一下nodejs镜像源试试。
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