We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
版本地址:https://mirrors.ustc.edu.cn/node/index.json 直接curl请求没问题,使用nodejs插件请求会 403
The text was updated successfully, but these errors were encountered:
实测是这个源需要 User-Agent 请求头,通过修改 .version-fox/plugin/nodejs/hooks/available.lua 文件,增加 User-Agent 请求头就行了。内容不限制,我给改成了版本号了,例如 vfox-nodejs/0.3.0
User-Agent
.version-fox/plugin/nodejs/hooks/available.lua
vfox-nodejs/0.3.0
Sorry, something went wrong.
涉及到发送 http 请求的都有这个问题
pre_install.lua 脚本也需要修改下返回值,增加 User-Agent 请求头,不然无法下载 return { version = version, url = baseUrl .. filename, sha256 = checksum, headers = {["User-Agent"]="vfox-nodejs/0.3.0"} }
pre_install.lua
return { version = version, url = baseUrl .. filename, sha256 = checksum, headers = {["User-Agent"]="vfox-nodejs/0.3.0"} }
No branches or pull requests
版本地址:https://mirrors.ustc.edu.cn/node/index.json
直接curl请求没问题,使用nodejs插件请求会 403
The text was updated successfully, but these errors were encountered: