add proxy support for nodejs plugin
Bug #1611372 reported by
Mitsuya Shibata
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Invalid
|
Medium
|
Unassigned |
Bug Description
npm command cannot access registry server over ssl.
https:/
Generally, to workaround this problem, npm user will set http"s"-proxy config to use "http" proxy or set registry config to use via http.
npm config set https-proxy "http://
or
npm config set registry "http://
Could you introduce this workaround to nodejs plugin?
To post a comment you must log in.
The interesting thing here is that this option seems to be
location-specific. It's not something you'd want in a shared
snapcraft.yaml because every developer would have a different preference
or requirement. So this needs to be something that a developer can set
as a snapcraft option which just gets applied every time snapcraft is
being used to drive npm.
So this is a snapcraft config item that is specific to the nodejs
plugin, which is cool.