Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

not support --napa_binding_binary_host_mirror #259

Open
smildlzj opened this issue Sep 6, 2018 · 0 comments
Open

not support --napa_binding_binary_host_mirror #259

smildlzj opened this issue Sep 6, 2018 · 0 comments

Comments

@smildlzj
Copy link

smildlzj commented Sep 6, 2018

hi,
my .npmrc as fllow

napa_binding_binary_host_mirror=http://xxx.com/mirrors/xxxxxxxxxxxx/

but,when npm install,it can't read this setting.
so i read the source of node-pre-gyp, in lib/util/versioning.js

var host = process.env['npm_config_' + opts.module_name + '_binary_host_mirror'] || package_json.binary.host;

in napajs's package.json, this module_name is napa-binding, but in process.env is 'napa_binding'

so it cant override package.json mirror setting

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant