Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: nodejs plugins #336

Open
Lucas-wdy opened this issue Aug 5, 2024 · 5 comments
Open

[BUG]: nodejs plugins #336

Lucas-wdy opened this issue Aug 5, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Lucas-wdy
Copy link

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 Lucas-wdy added the bug Something isn't working label Aug 5, 2024
@Chance-fyi
Copy link
Member

Can you access this link?

@Lucas-wdy
Copy link
Author

@Chance-fyi
Yes, I can

@Chance-fyi
Copy link
Member

  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

@logyxiao
Copy link

logyxiao commented Sep 18, 2024

同样就的问题
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

@aooohan
Copy link
Member

aooohan commented Oct 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants