_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:

@xxx:registry=https://github.xxx.net/
//github.xxx.net/:_authToken=xxxxyyyyzzzz

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?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.