As I work on a project that utilizes a private GitHub package, I have been using it locally with the command
npm login --registry=https://npm.pkg.github.com
. However, this approach has posed problems when attempting to deploy the project in a production environment using Netlify, resulting in a 401 Unauthorized
error.
The issue now is that despite running
npm logout --registry=https://npm.pkg.github.com
, I am still being authorized and able to download the package. There seems to be no clear reason why this is happening, as checking my .npmrc
file does not reveal an authentication token. How is this still functioning, and what steps can I take to rectify the situation and revert back to being unauthorized?