After running npx verdaccio-github-oauth-ui, in the browser window that opens, it cannot write to the .npmrc file because of this error:
Command failed: npm config set //npm.redacted.com/:always-auth true npm ERR! `always-auth` is not a valid npm option npm ERR! A complete log of this run can be found in: npm ERR! /Users/oskar/.npm/_logs/2023-01-16T14_56_06_386Z-debug-0.log
It seems always-auth has been obsolete from NPM v7 and forward, at least in the documentation. Here's a link to the documentation for v6. However, I tried with NPM v8 and it still works, so likely it has been removed in v9.
Expected behavior
That the authentication would succeed without error messages.
Maybe always-auth needs to be disabled if verdaccio-github-oauth-ui is running with a later NPM version, or if there's a replacement, couldn't find anything though, so it might have just been removed.
Thanks for bringing this up. I think we can safely remove this option then. I'll do a major release to mark it as a breaking change in case someone is using npm 6 or older.
Bug Report
Versions
Environment
Observed behavior
After running
npx verdaccio-github-oauth-ui
, in the browser window that opens, it cannot write to the.npmrc
file because of this error:It seems
always-auth
has been obsolete from NPM v7 and forward, at least in the documentation. Here's a link to the documentation for v6. However, I tried with NPM v8 and it still works, so likely it has been removed in v9.Expected behavior
That the authentication would succeed without error messages.
Maybe
always-auth
needs to be disabled ifverdaccio-github-oauth-ui
is running with a later NPM version, or if there's a replacement, couldn't find anything though, so it might have just been removed.