cli icon indicating copy to clipboard operation
cli copied to clipboard

[DOCS] tmp Directory

Open xM8WVqaG opened this issue 3 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

This is a CLI Docs Problem, not another kind of Docs Problem.

  • [X] This is a CLI Docs Problem.

Description of Problem

I tried to search for related issues but the topic is pretty generic.

The tmp config option is marked as not used since v7 in the config docs:

DEPRECATED: This setting is no longer used. npm stores temporary files in a special location in the cache, and they are managed by cacache.

https://docs.npmjs.com/cli/v8/using-npm/config#tmp

But it's still documented as doing something in the npm folders docs:

Temporary files are stored by default in the folder specified by the tmp config, which defaults to the TMPDIR, TMP, or TEMP environment variables, or /tmp on Unix and c:\windows\temp on Windows.

https://docs.npmjs.com/cli/v8/configuring-npm/folders#temp-files

Potential Solution

If I've misunderstood it's depreciation feel free to close this. But it appears to me that these two pages are out of sync.

Either tmp does still do something or it doesn't.

Affected URL

https://docs.npmjs.com/cli/v8/configuring-npm/folders#temp-files

xM8WVqaG avatar Sep 03 '22 11:09 xM8WVqaG