-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Wrong remote binary path break down mirror. #370
Comments
I used the old version before, and the mirror is working. But when I upgrade to the new version, the mirror no longer work. And I find the wrong |
From node-pre-gyp source code: https://github.com/mapbox/node-pre-gyp/blob/master/lib/util/versioning.js#L316 const host = process.env['npm_config_' + validModuleName + '_binary_host_mirror'] || package_json.binary.host; download host can be override by environment variable And from this file, we know download url is merged by host + remote_path + package_name. Only host can be override by environment "binary": {
"module_name": "argon2",
"module_path": "./lib/binding/napi-v{napi_build_version}",
"host": "https://github.com/ranisalt/node-argon2/releases/download/",
"remote_path": "v{version}",
"package_name": "{module_name}-v{version}-napi-v{napi_build_version}-{platform}-{arch}-{libc}.tar.gz",
"napi_versions": [
3
]
}, And here is the npmmirror.com files list: https://registry.npmmirror.com/binary.html?path=argon2/ |
Interesting. Not really an issue in this repo though, but rather a naming issue with this value which is not the I'm out of my PC right now, if you can open a PR I'll accept it right away, otherwise I can do it a little later. |
Got it, and here is the PR: #371 |
Make environment variable `npm_config_argon2_binary_host_mirror` or command line `--argon2_binary_host_mirror` could work. Fix #370
Since v0.30.1 commit: 3351274
The binary mirror not working anymore.
Please revert remote host & path to the old version to fix mirror working. Thanks.
The prebuilt download URL should replace to
https://cdn.npmmirror.com/binaries/argon2/v0.30.3/argon2-v0.30.3-napi-v3-linux-x64-glibc.tar.gz
A working example can referrer to sqlite3: https://github.com/TryGhost/node-sqlite3/blob/c1440bdaa47ffdda852ff576ac543114c4f0fb4b/package.json#L10-L20
The text was updated successfully, but these errors were encountered: