Open nepaul opened 7 years ago
@nepaul does it not working with other versions? Does it now working if you switched to use bash shell?
@PeterDaveHello It once worked. Maybe since MacOS High Sierra?
@nepaul what's the output from set -x; nvm uninstall v8.5
?
@nepaul I don't think so as I tested it with High Sierra and I got no problem.
@ljharb
set -x; nvm uninstall v8.5
output:
nvm_check_file_permisions .....like below:
+nvm_check_file_permissions:9> nvm_check_file_permissions /Users/username/.nvm/versions/node/v8.5.0/lib/node_modules/json-server/node_modules/_http-signature@1.2.0@http-signature/node_modules/sshpk/node_modules/bcrypt-pbkdf
+nvm_check_file_permissions:1> local ZSH_HAS_NONOMATCH_UNSET
+nvm_check_file_permissions:2> ZSH_HAS_NONOMATCH_UNSET=1
+nvm_check_file_permissions:3> nvm_has setopt
+nvm_has:1> type setopt
+nvm_check_file_permissions:4> ZSH_HAS_NONOMATCH_UNSET=
+nvm_check_file_permissions:4> set +e
+nvm_check_file_permissions:4> nvm_grep nonomatch
+nvm_check_file_permissions:4> setopt
+nvm_grep:1> GREP_OPTIONS='' grep nonomatch
+nvm_check_file_permissions:4> nvm_echo 0
+nvm_echo:1> printf '%s\n' 0
+nvm_check_file_permissions:4> ZSH_HAS_NONOMATCH_UNSET=0
+nvm_check_file_permissions:5> setopt nonomatch
....
...
...
i met the same problem... did you get useful way to solve it? @nepaul
same problem
@scoyzhao not yet.
same problem
@nepaul can you post the whole output here: https://pastebin.com/
same problem。
same problem nvm: 0.34.0 ,mac OS 10.13, zsh 5.3 rm -rf ~/.nvm/versions/node/vx.xx.x/lib/node_modules then nvm uninstall will success
@NineDayForever that suggests you used sudo npm install -g
at some point. sudo is never needed with nvm, and doing so will definitely prevent your ability to uninstall.
Operating system and version: MacOS High Sierra v10.13
nvm debug
output:nvm ls
output:How did you install
nvm
? (e.g. install script in readme, homebrew): install script in reame:curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
What steps did you perform?
nvm uninstall v8.5
What happened? nothing, output nothing
What did you expect to happen? uninstall v8.5
Is there anything in any of your profile files (
.bashrc
,.bash_profile
,.zshrc
, etc) that modifies thePATH
?curl -I --compressed -v https://nodejs.org/dist/
print out?