ok, I figure it out now, node-gyp currently doesn't support to set tarball url, but we can set disturl via environment variable or config files.
in ~/.npmrc, we can add disturl=...
to set disturl.
also we can set npm_config_disturl
as a environment variable and it will be treated as a npm config variable.
with the disturl
, node-gyp
will get tarball url