[BUG] Extra .npm directory created in user's home while npm_config_cache set #4911
Open
2 tasks done
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
A ~/.npm directory gets created on npm install along with the correct directory specified in npm_config_cache. On a fresh install without a cache created yet, the size of the extra ~/.npm directory is 2.1 MiB and the size of the specified ~/.cache/npm directory is 89.1 MiB.
Expected Behavior
Obey the npm_config_cache without creating the extra directory in home.
Steps To Reproduce
npm install a package while having npm_config_cache set to a location other than default. The extra directory is created at the end of install.
Environment
The text was updated successfully, but these errors were encountered: