Skip to content

[RRFC] Respect platform specific directories for config, data, cache, etc. #389

Description

@natestemen

This is a follow on since npm/cli#654 was closed.

Motivation ("The Why")

When using npm, it should not leave files/directories in the users' home directory if known environment variables are set, e.g. XDG_CONFIG_HOME.

How

Current Behaviour

npm creates a ~/.npm directory.

Desired Behaviour

npm should create the needed config/cache files/directories with respect to https://wiki.archlinux.org/title/XDG_Base_Directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions