Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
aero-26 opened this issue Apr 3, 2025 · 4 comments
Closed
Labels
needs followup We need some info or action from whoever filed this issue/PR.

Comments

@aero-26
Copy link

aero-26 commented Apr 3, 2025

Operating system and version:

Debian 12 (Bookworm)

nvm debug output:

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:

->     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?

@ljharb
Copy link
Member

ljharb commented Apr 3, 2025

Please fill out the entire issue template; it's there for a reason.

@ljharb ljharb added the needs followup We need some info or action from whoever filed this issue/PR. label Apr 3, 2025
@aero-26
Copy link
Author

aero-26 commented Apr 4, 2025

Please fill out the entire issue template; it's there for a reason.

I’m so sorry about that. I’ve edited the issue to some extent. Please let me know if I’m missing any required fields or anything else that I need to include. Thank you so much!

@aero-26 aero-26 changed the title NVM automatically open my VS code with new filenames source "$NVM_DIR/nvm.sh" in Terminal opens vscode with file name manpath Apr 4, 2025
@aero-26 aero-26 closed this as completed Apr 4, 2025
@aero-26
Copy link
Author

aero-26 commented Apr 4, 2025

Image

This is the way I fixed the issue.

@ljharb
Copy link
Member

ljharb commented Apr 4, 2025

That's not a fix - \. and source are equivalent on many shells, so both should work identically.

Your nvm debug output has some really weird stuff; the implication is that your system has something very weird and/or atypical going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs followup We need some info or action from whoever filed this issue/PR.
Projects
None yet
Development

No branches or pull requests

2 participants