Nvm: Problem uninstalling specific node version

Created on 16 Sep 2016  Â·  8Comments  Â·  Source: nvm-sh/nvm

I installed node v6.6.0 and want to uninstall older one v.6.5.0 but have problem:

~> nvm uninstall v6.5.0
nvm_check_file_permissions:1: no matches found: ~/.nvm/versions/node/v6.5.0/.[!.]*
bugs installing node zsh

All 8 comments

hm - what's the output of nvm debug, and what are the contents of ~/.nvm/versions/node/v6.5.0/?

nvm debug:

~> nvm debug
nvm --version: v0.32.0
$SHELL: /bin/zsh
$HOME: /home/milley
$NVM_DIR: '$HOME/.nvm'
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
nvm current: v6.6.0
which node: $NVM_DIR/versions/node/v6.6.0/bin/node
which iojs: iojs not found
which npm: $NVM_DIR/versions/node/v6.6.0/bin/npm
npm config get prefix: $NVM_DIR/versions/node/v6.6.0
npm root -g: $NVM_DIR/versions/node/v6.6.0/lib/node_modules

and content of the v6.5.0:

~> ls -la ~/.nvm/versions/node/v6.5.0
razem 136
drwxr-xr-x 1 milley users    98 09-04 17:57 .
drwxr-xr-x 1 milley users    36 09-16 09:17 ..
drwxr-xr-x 1 milley users    44 09-04 17:58 bin
-rw-r--r-- 1 milley users 54900 08-26 17:17 CHANGELOG.md
drwxr-xr-x 1 milley users     0 09-04 17:57 etc
drwxr-xr-x 1 milley users     8 08-26 17:17 include
drwxr-xr-x 1 milley users    24 08-26 17:16 lib
-rw-r--r-- 1 milley users 60477 08-26 17:17 LICENSE
-rw-r--r-- 1 milley users 16942 08-26 17:17 README.md
drwxr-xr-x 1 milley users    30 08-26 17:16 share

If you need something more please write :)

Since you're using zsh, what's the output of setopt? Are you using oh-my-zsh?

Yes I use zsh, and some plugins of oh-my-zsh with zplug... my zsh config is here:
https://github.com/dw72/dotfiles/tree/master/zsh

There is setopt output:

~> setopt
autocd
autopushd
nobgnice
completealiases
extendedhistory
histignorealldups
histreduceblanks
histverify
nohup
incappendhistory
interactive
nolistbeep
localoptions
localtraps
promptsubst
pushdignoredups
pushdminus
sharehistory
shinstdin
zle

My stock zsh setopt is:

combiningchars
interactive
monitor
nonomatch
shinstdin
zle

It would help if you could help figure out which zsh option(s) is causing the issue, by disabling the first half, then the second half, then the middle half. :-)

Ok I do this when i return home next week...

After setting nonomatch uninstall is working ok. Now I have:

autocd
autopushd
nobgnice
completealiases
extendedhistory
histignorealldups
histreduceblanks
histverify
nohup
incappendhistory
interactive
nolistbeep
localoptions
localtraps
nonomatch
promptsubst
pushdignoredups
pushdminus
sharehistory
shinstdin
zle

Thanks, that helps a ton! Fix incoming.

Was this page helpful?
0 / 5 - 0 ratings