Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Default tmp directory is in HOME #2936

Closed
pksunkara opened this issue Nov 8, 2012 · 7 comments
Closed

Default tmp directory is in HOME #2936

pksunkara opened this issue Nov 8, 2012 · 7 comments
Labels

Comments

@pksunkara
Copy link

Is that intentional?

How can I change it?

@isaacs
Copy link
Contributor

isaacs commented Nov 9, 2012

npm help config

The default tmp dir is /tmp. The default cache dir is ~/.npm, which is not a "temp" dir, though it is fine to delete stuff out of there. More properly, it's a cache.

Set the tmp dir via the tmp npm config. Set the cache dir via the cache npm config.

@isaacs isaacs closed this as completed Nov 9, 2012
@pksunkara
Copy link
Author

In Ubuntu, The default tmp dir is $HOME/tmp not /tmp

@mdeltito
Copy link

mdeltito commented Apr 1, 2013

Thanks for confirming what I suspected pksunkara. Indeed, the Ubuntu package has the default as $HOME/tmp

@isaacs
Copy link
Contributor

isaacs commented Apr 13, 2013

Ah, right, well... if the OS sets TMP or TMPDIR environments, npm dutifully does as its told.

@TheKojuEffect
Copy link

How can I ask npm to use ~/.tmp rather than ~/tmp in ubuntu?

@Albert-IV
Copy link

Fairly certain it's the npm config set tmp / npm config get tmp commands.

You can get more info by doing npm help config.

@josefnpat
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants