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.
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
~/.npmdirectory.Desired Behaviour
npm should create the needed config/cache files/directories with respect to https://wiki.archlinux.org/title/XDG_Base_Directory.