Nvm: Is it safe to delete files on .nvm/.cache/ folder? (it is taking too much space)

Created on 27 Mar 2017  路  2Comments  路  Source: nvm-sh/nvm

  • Operating system and version: MacOS X El Capital, v 10.11.6

  • nvm debug output:
    nvm --version: v0.33.0
    $SHELL: /bin/bash
    $HOME: /Users/macuser
    $NVM_DIR: '$HOME/.nvm'
    $PREFIX: ''
    $NPM_CONFIG_PREFIX: ''
    nvm current: v6.10.0
    which node: $NVM_DIR/versions/node/v6.10.0/bin/node
    which iojs:
    which npm: $NVM_DIR/versions/node/v6.10.0/bin/npm
    npm config get prefix: $NVM_DIR/versions/node/v6.10.0
    npm root -g: $NVM_DIR/versions/node/v6.10.0/lib/node_modules


  • nvm ls output:
    v4.5.0
    v5.7.1
    -> v6.10.0
    system
    default -> 6.10.0 (-> v6.10.0)
    node -> stable (-> v6.10.0) (default)
    stable -> 6.10 (-> v6.10.0) (default)
    iojs -> N/A (default)
    lts/* -> lts/boron (-> v6.10.0)
    lts/argon -> v4.8.0 (-> N/A)
    lts/boron -> v6.10.0

  • How did you install nvm? (e.g. install script in readme, homebrew):
    Install script

  • What steps did you perform?

  • What happened?

  • What did you expect to happen?

  • Is there anything in any of your profile files (.bashrc, .bash_profile, .zshrc, etc) that modifies the PATH?

  • If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/ print out?


This is the information about the folder I'm talking about:

MacBook-Air-2013-MM:.cache macuser$ pwd
/Users/macuser/.nvm/.cache
MacBook-Air-2013-MM:.cache macuser$ du -ksh *
19M bin
1.8G src
MacBook-Air-2013-MM:.cache macuser$ cd src/
MacBook-Air-2013-MM:src macuser$ du -ksh *
1.8G node-v6.10.0
MacBook-Air-2013-MM:src macuser$ cd node-v6.10.0/
MacBook-Air-2013-MM:node-v6.10.0 macuser$ du -ksh *
1.7G files
25M node-v6.10.0.tar.gz
MacBook-Air-2013-MM:node-v6.10.0 macuser$

Is there something I could delete to free space on my machine?

Most helpful comment

Quite safe! You can run nvm cache clear to clear it.

All 2 comments

Quite safe! You can run nvm cache clear to clear it.

Thank you @ljharb it works great, there isn't space consumed by .cache folder now.

Was this page helpful?
0 / 5 - 0 ratings