You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have useCache=true set.
Everytime, when I launch install goal, a new request to the registry occurs for the same packages even if I have them in <home-dir>/cache/ already.
[INFO] --> GET http://registry.npmjs.org/vue
[INFO] --> END GET
[INFO] <-- 200 OK https://registry.npmjs.org/vue (272ms)
What should I do to get rid of these unnecessary requests?
The text was updated successfully, but these errors were encountered:
@amseager, cache is being used for downloaded files - but not for metadata. For package metadata JNPM still need to have access to NPM registry. If that's an issue for you - please explain your case in more details - potentially we can invent something to cover the case.
Ah, didn't fully understand the meaning of that property.
I actually don't have any problems at the moment, although I can imagine a couple of situations when you cannot build your project because of it (but you could do it potentially if you have all required packages in your local cache):
you simply have no access to the Internet / default npm registry (or things like that)
you can have a company's internal registry which is available only via VPN, and you're always forced to connect to it for making requests to that registry
I see. Let me think about it... The main usecase for useCache=false was the following: during development process the same package being pushed to a repository under the same version again and again. So to avoid using an old version from cache, this flag was introduced to be able to request tar.gz package every time during build.
I have
useCache=true
set.Everytime, when I launch
install
goal, a new request to the registry occurs for the same packages even if I have them in<home-dir>/cache/
already.What should I do to get rid of these unnecessary requests?
The text was updated successfully, but these errors were encountered: