-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support for private npm registries #116
Comments
I forked next-update and implemented a solution that would work for our needs: It provides two additional parameters:
We are then running next-update like this: |
* feat(registry): provide new option '--registry' to set a custom registry url #116 * feat(registry): fix passing options correctly into fetchVersions #116 * feat(check-version-timeout): define custom timeout for version check #116 * feat(registry/check-version-timeout): clean up code #116 * feat(registry/check-version-timeout): reset version to 0.0.0 #116
So our registry doesn't need authentication. I run the command like so:
and still get:
But I have no need for auth. Am I doing something wrong? |
Hi,
we're using a private npm registry where authentication is required and we're struggling by fetching the version info from there.
At the moment it seems like next-update is using the .npmrc file to get the registry url, so I tried to put user and password into the url, like: https://user:[email protected] within my .npmrc file, but that still resulted in a timeout. Problem here is that https is always replaced by http, which is not supported by our registry.
I finally fixed it by editing your registry.js file (line 182):
I also needed to increase the MAX_CHECK_TIMEOUT on line 313.
Is there a chance to implement a way of configuring a custom registry with custom credentials, https support and custom timeout value? We'd really love to use next-update in our project! It's a great tool!
The text was updated successfully, but these errors were encountered: