This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
Output of npm config get cache changes based on working directory - is that intentional? #13565
Closed
1 of 13 tasks
Labels
I'm opening this issue because:
What's going wrong?
If I have an .npmrc in the project root with:
and I run
npm config get cache
from the root, it'll output:but if I run
npm config get cache
from<root>/subdir
, it'll output:I was a bit surprised to see that the cache path is relative to the current working directory rather than the project root. I would like to know if this behavior is intentional or undesired.
How can the CLI team reproduce the problem?
Observe the difference in the output:
vs
supporting information:
npm -v
prints:3.10.4
node -v
prints:v6.2.0
npm config get registry
prints:https://registry.npmjs.org/
The text was updated successfully, but these errors were encountered: