-
Notifications
You must be signed in to change notification settings - Fork 327
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
ncu ignores _auth in .npmrc #1022
Comments
There's a long history of getting npm-check-updates's auth to work as-is with the local npm config. This is due to differences between libnpmconfig and pacote. For past discussions see #556 and #878. There is also an open issue on pacote related to auth which may be related. Can you try this workaround from #878 (comment)?
|
I've been struggling with this issue for a couple weeks now and I found a solution + learned valuable information that I hope is helpful to everybody.
|
https://docs.npmjs.com/cli/v8/using-npm/config#userconfig npm-check-updates uses https://github.com/npm/libnpmconfig to read the npm config. Looking into this, it seems like there is a bug in I patched it, so |
Closing due to inactivity from OP. |
npm-check-updates
node >= 12
Steps to Reproduce
create an .npmrc file in your user folder to access a private repo. e.g. with a special _auth
run npm update and check that you have access to the private repo via _auth of .npmrc
run ncu and you won't have the rights to access the private repo
Current Behavior
settings in .npmrc are ignored
Expected Behavior
settings in .npmrc should be used as they are used in npm
The text was updated successfully, but these errors were encountered: