I have a question about how NPM works. When I install a library globally or on a project, at times node-gyp is used and at other times not for the same library Let me explain, I work in a company with a strict security policy, that is to say that we don't have direct access to the Internet, we go through internal tools and configurations.
For example, for the NX library:
When I don't have the configuration of my company and I am directly on the internet. Installing NX goes perfectly, no need for Python etc. In verbose mode I see a node-gyp rebuild, but it doesn't block the install.
When I have my company's npmrc file, the NX library install asks for Python, the C++ sdk, etc.
Why in one case NPM should not rebuild and in the other case it should? Does anyone have an explanation to this ?
In our npmrc file, we modify the registry variable to go through our Artifactory.
Thank you in advance for your explanations