Skip to content

[DOCS] tmp Directory #5466

@xM8WVqaG

Description

@xM8WVqaG

Is there an existing issue for this?

  • I have searched the existing issues

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

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentationdocumentation related issuePriority 2secondary priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions