I have create a .nmprc file in my project directory as:
@mycompany:registry=https://registry.mycompany.com/
However when I do npm install I see package dependencies which do not start with @mycompany also gets installed from https://registry.mycompany.com/ and not from https://registry.npmjs.org/.
This is what I see in package-lock.json:
"yaml": {
"version": "1.7.2",
"resolved": "https://registry.mycompany.com/yaml/-/yaml-1.7.2.tgz",
"integrity": "sha512-qXROVp90sb83XtAoqE8bP9RwAkTTZbugRUTm5YeFCBfNRPEp2YzTeqWiz7m5OORHzEvrA/qcGS8hp/E+MMROYw==",
"dev": true,
"requires": {
"@babel/runtime": "^7.6.3"
}