Skip to content

nvm uninstall: request "22" but error message shows N/A #3767

@PeterDaveHello

Description

@PeterDaveHello

Operating system and version:

Ubuntu 24.04.3 LTS (Noble Numbat), x86_64

nvm debug output:

Details
nvm --version: v0.40.3
$TERM_PROGRAM: tmux
$SHELL: /bin/bash
$SHLVL: 3
whoami: 'peter'
${HOME}: /home/peter
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${HOME}/.local/bin:${HOME}/.local/bin:${HOME}/.codex/tmp/path/codex-arg0aFAzON:${NVM_DIR}/versions/node/v24.13.0/lib/node_modules/@openai/codex/vendor/x86_64-unknown-linux-musl/path:${HOME}/.local/bin:${NVM_DIR}/versions/node/v24.13.0/bin:${HOME}/bin:${HOME}/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)'
uname -a: 'Linux peter 6.14.0-37-generic #37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2 x86_64 x86_64 x86_64 GNU/Linux'
checksum binary: 'sha256sum'
OS version: Ubuntu 24.04.3 LTS  
awk: /usr/bin/awk, GNU Awk 5.2.1, API 3.2, PMA Avon 8-g1, (GNU MPFR 4.2.1, GNU MP 6.3.0)
curl: /usr/bin/curl, curl 8.5.0 (x86_64-pc-linux-gnu) libcurl/8.5.0 OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 (+libidn2/2.3.7) libssh/0.10.6/openssl/zlib nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.7
wget: /usr/bin/wget, GNU Wget 1.21.4 built on linux-gnu.
git: /usr/bin/git, git version 2.43.0
grep: /usr/bin/grep, grep (GNU grep) 3.11
sed: /usr/bin/sed, sed (GNU sed) 4.9
cut: /usr/bin/cut, cut (GNU coreutils) 9.4
basename: /usr/bin/basename, basename (GNU coreutils) 9.4
rm: /usr/bin/rm, rm (GNU coreutils) 9.4
mkdir: /usr/bin/mkdir, mkdir (GNU coreutils) 9.4
xargs: /usr/bin/xargs, xargs (GNU findutils) 4.9.0
nvm current: v24.13.0
which node: ${NVM_DIR}/versions/node/v24.13.0/bin/node
which iojs: 
which npm: ${NVM_DIR}/versions/node/v24.13.0/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v24.13.0
npm root -g: ${NVM_DIR}/versions/node/v24.13.0/lib/node_modules

nvm ls output:

Details
       v20.20.0 *
->     v24.13.0 *
         system *
default -> 24 (-> v24.13.0 *)
iojs -> N/A (default)
node -> stable (-> v24.13.0 *) (default)
stable -> 24.13 (-> v24.13.0 *) (default)
unstable -> N/A (default)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.21.3 (-> N/A)
lts/gallium -> v16.20.2 (-> N/A)
lts/hydrogen -> v18.20.8 (-> N/A)
lts/iron -> v20.20.0 *
lts/jod -> v22.22.0 (-> N/A)
lts/krypton -> v24.13.0 *
lts/* -> lts/krypton (-> v24.13.0 *)

How did you install nvm?

Use the installation script in README.md

What steps did you perform?

  1. source ~/.nvm/nvm.sh
  2. nvm uninstall 22

What happened?

Command prints: N/A version is not installed...
The message does not mention the requested version (22), so it is unclear which input failed.

What did you expect to happen?

A message that includes the requested version, e.g. Version 22 is not installed (optionally with a hint like nvm ls to show installed versions).

Is there anything in any of your profile files that modifies the PATH?

Yes — ~/.nvm/nvm.sh is sourced in my shell profile and adds ~/.nvm/versions/.../bin to PATH.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions