Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow set proxy for npm #622

Open
LeungJacky opened this issue May 16, 2024 · 2 comments
Open

Allow set proxy for npm #622

LeungJacky opened this issue May 16, 2024 · 2 comments

Comments

@LeungJacky
Copy link

Currently cannot config the proxy

@oculus42
Copy link

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.

@lukehaas
Copy link
Owner

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.

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

No branches or pull requests

3 participants