Skip to content

Do not export NVM_DIR variable in install.sh#3646

Closed
gurjeet wants to merge 1 commit intonvm-sh:masterfrom
gurjeet:patch-1
Closed

Do not export NVM_DIR variable in install.sh#3646
gurjeet wants to merge 1 commit intonvm-sh:masterfrom
gurjeet:patch-1

Conversation

@gurjeet
Copy link
Copy Markdown

@gurjeet gurjeet commented Aug 30, 2025

Exporting the variable is not necessary, since the nvm functions work as
expected without the export. Exporting it, however, pollutes the shell's child
processes' environment unnecessarily.

Exporting the variable is not necessary, since the nvm functions work as
expected without the export. Exporting it, however, pollutes the shell's child
processes' environment unnecessarily.
@ljharb
Copy link
Copy Markdown
Member

ljharb commented Aug 31, 2025

Making nvm available to a shell's child processes is a feature, not a pollution.

@ljharb ljharb closed this Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants