raszi / node-tmp

Temporary file and directory creator for node.js
MIT License
732 stars 93 forks source link

Unknown "devtmpnodejsnpm-cache" folder #269

Closed Avivhdr closed 3 years ago

Avivhdr commented 3 years ago

Operating System

NodeJS Version

IDE

Experienced Behavior

Though I'm not using this module directly, every time I'm installing any new module in any of my projects using npm install, a folder with the name of "devtmpnodejsnpm-cache" is being created in the root folder of that particular project. See image: image

Searching this folder name in google brings 0 results: image

Does this folder has anything to do with node-tmp? If not, do you know what is it?

silkentrance commented 3 years ago

npmjs does not use the tmp module.

See https://docs.npmjs.com/cli/v7/commands/npm-cache for more information about the npm caching system.

Maybe also have a look at your npm configuration, it might override the default location, which should be

Default: Windows: %LocalAppData%\npm-cache
Posix: ~/.npm
Avivhdr commented 3 years ago

Great. Thanks!

My .npmrc file had cache=C:userdevtmpnodejsnpm-cache And I changed it to: cache=C:\Users\Aviv\AppData\Local\npm-cache