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

[Question] get checksum failed #330

Open pinggaimuier opened 1 month ago

pinggaimuier commented 1 month ago

OS Windows

Question Description vfox install nodejs@21.15.1
plugin [PreInstall] method error: C:\Users\pinggai.version-fox\plugin\nodejs\hooks\pre_install.lua:51: get checksum failed
stack traceback:
G: in function 'error'
C:\Users\pinggai.version-fox\plugin\nodejs\hooks\pre_install.lua:51: in main chunk

failed to install nodejs

ruhengChen commented 3 weeks ago

发现这是由于设置的仓库地址错误 需要按下面这个配置才行 export VFOX_NODEJS_MIRROR=https://cdn.npmmirror.com/binaries/node