-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Private npm registry #100
Comments
Should work yes, but never tested as I don't use a private npm registry. Happy to merge a PR for a fix if there's a problem, but you're pretty much on your own when using a private npm registry. |
Did you probably missed the namespace for the private registry?
|
had the same option with a private repo configured in .npmrc even the example.js does not work with this setup. I don't use scoping in this context. The registry is configured to return private and external packages within the same url |
I am having issues used a scoped Sinopia server as well (similar setup as @ChrisEbert from the looks of it). |
I've debugged this issue. Here are my findings:
I will create an issue there |
So.. any solutions here? :) |
nobody seems very interested in fixing this issue or providing suggestions for a fix. As we are not using a private repo anymore, I will not create any PRs. |
I checked the problem and the lack of support comes from the Question is, if I'll fork the package and will create an alternative, will I waste my time or will it be used? |
I suddenly faced the same problem, but as @huruji said - |
Same problem for me. This module wouldn't show updates from my private repository (Nexus). The reason why it did not work was hidden in the outputs of the spawned process to request the npm registry. Changing this line: https://github.com/yeoman/update-notifier/blob/71a3f197c46ba8e82fd5c00bcc6ccf88f437de9f/index.js#L99 to 'inherit' revealed the problem:
I was using https with a self signed certificate to access my private repository. The quick (and insecure) solution was to add
before calling |
I forked this repo, and add registryUrl param to specify private npm registry, just see https://www.npmjs.com/package/update-notifier2 const updateNotifier = require('update-notifier2');
updateNotifier({
pkg,
registryUrl: 'http://npm.example.com',
}).notify({
installCommand: `cnpm i -g ${pkg.name} --registry=${registryUrl}`,
}) |
Hi, |
i think,custom config update registry should implement on main branch |
We are in 2022 and still not working with private repository even though some solution have been proposed in other forks. Am i missing something? |
@msalafia use this https://www.npmjs.com/package/update-notifier2 |
I am using v1.0.3 with a CLI utility that has been added to our private npm registry. The registry is defined both in my global (user) .npmrc and local CLI utility .npmrc but it is still coming back as undefined when I use:
Is there a step I am missing? Based on #32 I thought it should work with private registries. Maybe I'm wrong though.
The text was updated successfully, but these errors were encountered: