Hi all, anyone have experience setting a proxy on ...
# javascript
a
Hi all, anyone have experience setting a proxy on the node/yarn exec that gradle uses in a kotlin-js project? Googling doesn’t produce any results and I don’t see notice anything on the KotlinJsNodeDsl class.
t
@andrewreitz Do you want to use custom “artifactory” for node/yarn binaries?
a
No. Just need to pull from mom through a proxy.
t
a
Yeah. I already have that set for Gradle. The npm instance from kotlinjs is not using it though.
It's not the system npm either since the proxy has been set for that one as well.
It needs to be configured for that specific task but I don't see any way to do so. I think the NpmExe task could work but it doesn't appear to pick up the npm binary that Gradle is using so it's not much different than me finding it and setting it manually.
t
Look like issue :)
👍 1
cc @Ilya Goncharov [JB]
a
if there’s a way to put a proxy in there.
j
I think you have to make a .yarnc file in project root and add proxy there
in project roo
Copy code
httpProxy: "<http://your.proxy.com:1234>"
httpsProxy: "<https://your.proxy.com:1234>"
to pull in dependencies behind a proxy
or am I missing the point here? 😅
a
It seems like the proxy should respect the gradle proxy settings.
IMO