RunJS icon indicating copy to clipboard operation
RunJS copied to clipboard

Allow set proxy for npm

Open LeungJacky opened this issue 1 year ago • 2 comments

Currently cannot config the proxy

LeungJacky avatar May 16 '24 03:05 LeungJacky

This is covered by #237 #459 #570 There are some good comments in those tickets.

It's not a durable fix by any means, but this was my workaround for local testing:

  • Open a terminal.
  • cd ~/Library/Application Support/runjs (not sure the Windows equivalent
  • Create or copy the .npmrc file with the appropriate proxy.
  • npm install -S the package(s) from my internal proxy.
  • Remove the .npmrc file to avoid messing up RunJS normal package handling.

oculus42 avatar Aug 13 '24 13:08 oculus42

RunJS creates an empty .npmrc file in ~/Library/Application Support/runjs. You can add whatever config you need to it. RunJS will then use it for installing and searching.

lukehaas avatar Aug 13 '24 15:08 lukehaas