What is the npm tmp directory? Can i remove it?

On a new Ubuntu machine 12.04.3, I made the following installations in my home directory:

  • Git: sudo apt-get install git
  • Node.js: sudo apt-get install nodejsand updated it with sudo npm cache clean -f , sudo npm install -g n,sudo n stable
  • npm: sudo apt-get install npmand then update it withnpm update npm -g
  • Yoman: sudo npm install -g yo

A new "tmp" directory has appeared in my home directory with the following structure:

npm-13728-uErqEQ4O:
1392566713336-0.9297236264683306  1392566726706-0.4921755278483033

npm-13763-yoMEDYdC:
1392566864990-0.09957328205928206

Each of the uErqEQ4O subdirectories contains:

tmp.tgz

package:
AUTHORS  configure        html     make.bat  node_modules  scripts
bin      CONTRIBUTING.md  lib      Makefile  package.json  test
cli.js   doc              LICENSE  man       README.md

The yoMEDYdC subdirectory contains:

tmp.tgz

package:
cli.js  package.json  readme.md  scripts  yeoman.txt  yoyo.js

What is the tmp npm directory and everything inside? Why is this generated?

Can i remove it? If not, where can I move it because I don't want it in my home directory?

+3
source share
1 answer

Tmp temp - , ( ):

npm tmp:

, tmp config, TMPDIR, TMP TEMP /tmp Unix c:\windows\temp Windows.

.

, , , . _tmp . , . , - .

+2

All Articles