zsh-nvm icon indicating copy to clipboard operation
zsh-nvm copied to clipboard

`unknown condition: -ne` when executing `nvm install --lts` while latest LTS version of Node.js is already installed

Open ksze opened this issue 2 years ago • 1 comments

Steps to reproduce:

  1. run nvm install --lts to install the latest LTS version (v18.12.0 as of this writing) of Node.js
  2. run nvm install --lts again.

Output:

Installing latest LTS version.
v18.12.0 is already installed.
Now using node v18.12.0 (npm v8.19.2)
_zsh_nvm_nvm:[:523: unknown condition: -ne
_zsh_nvm_nvm:[:528: unknown condition: -ne
_zsh_nvm_nvm:[:541: unknown condition: -ne

ksze avatar Oct 28 '22 02:10 ksze

Hello, @ksze please see here: https://github.com/nvm-sh/nvm/issues/2914.

fearnliu avatar Nov 02 '22 02:11 fearnliu