npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

_authToken only works for scoped package with dedicated registry configured in npmrc

npm v6.4.1

I need to install some private packages from our github enterprise, which needs token to access.
so I configured the token in project/.npmrc as below:


its the only way for _authToken to work, which is scope the package under @xxx. but, there are also some un-scoped private packages(we dont have private npm registry).
then the token is totally not working.
I am wondering how npm handle the token, is it @scoped only or I am using it in a wrong way?