I tested with Azure Packages private NPM server and now want to revert back to using the standard NPM registry but when I do it complains. I have tried everything I can think of and it is blocking me from doing any work now. I'd really appreciate any help.
The error
- npm ERR! code E401
- npm ERR! Unable to authenticate, your authentication token seems to be invalid.
- npm ERR! To correct this please trying logging in again with:
- npm ERR! npm login
If I check the log it is still, somehow, trying to find packages from Azure rather than the npm registry.
The Azure URL specified below doesnt exist in any .npmrc file or package-lock file I can find!
To be clear here I want to use the default NPM registry not Azure. e.g.
32 silly fetch manifest @types/angular@https://pkgs.dev.azure.com/***/***/_packaging/***.Common.UI/npm/registry/@types/angular/-/angular-1.6.45.tgz
Steps I have taken
- Deleted my local .npmrc file
- Deleted .npmrc file from my user profile
- Cleared NPM cache
- Cleared local node_modules folder
- npm config set registry https://registry.npmjs.org/
- npm config set registry https://registry.npmjs.com/
- Reinstalled node.js
In each case, running npm install
still gives me the same error.
Please help!