Skip to content

source "$NVM_DIR/nvm.sh" in Terminal opens vscode with file name manpath #3556

@aero-26

Description

@aero-26

Operating system and version:

Debian 12 (Bookworm)

nvm debug output:

Details
nvm --version: v0.40.2
$SHELL: /bin/zsh
$SHLVL: 1
whoami: 'aero'
${HOME}: /home/aero
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v20.19.0/bin:${HOME}/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:${HOME}/.local/bin:${HOME}/.local/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.9 (x86_64-debian-linux-gnu)'
uname -a: 'Linux 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux'
checksum binary: 'sha256sum'
OS version: Debian GNU/Linux 12  
random-funcs:       srandom/random
regex-funcs:        internal
compiled limits:
sprintf buffer      8192
maximum-integer     2147483647
awk: , mawk 1.3.4 20200120
curl: , curl 7.88.1 (x86_64-pc-linux-gnu) libcurl/7.88.1 OpenSSL/3.0.15 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13
wget: , GNU Wget 1.21.3 built on linux-gnu.
ls: cannot access '': No such file or directory
git: , git version 2.39.5
ls: cannot access '': No such file or directory
grep: , grep (GNU grep) 3.8
ls: cannot access '': No such file or directory
sed: , sed (GNU sed) 4.9
ls: cannot access '': No such file or directory
cut: , cut (GNU coreutils) 9.1
ls: cannot access '': No such file or directory
basename: , basename (GNU coreutils) 9.1
ls: cannot access '': No such file or directory
rm: , rm (GNU coreutils) 9.1
ls: cannot access '': No such file or directory
mkdir: , mkdir (GNU coreutils) 9.1
ls: cannot access '': No such file or directory
xargs: , xargs (GNU findutils) 4.9.0
nvm current: v20.19.0
which node: ${NVM_DIR}/versions/node/v20.19.0/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v20.19.0/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v20.19.0
npm root -g: ${NVM_DIR}/versions/node/v20.19.0/lib/node_modules

nvm ls output:

Details
->     v20.19.0
         system
default -> v20.19.0
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v20.19.0) (default)
stable -> 20.19 (-> v20.19.0) (default)
lts/* -> lts/jod (-> N/A)
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.19.0
lts/jod -> v22.14.0 (-> N/A)

How did you install nvm?

Using curl command and downloading the file within the home partition.

What steps did you perform?

source "$NVM_DIR/nvm.sh"

What happened?

Running source "$NVM_DIR/nvm.sh" on terminal opens vscode with manpath file name.

What did you expect to happen?

Just run normally and not open any kind of text editor.

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

.zshrc

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

Details

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs followupWe need some info or action from whoever filed this issue/PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions