We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e76b294 commit 3c079f1Copy full SHA for 3c079f1
nvm.sh
@@ -2339,7 +2339,7 @@ nvm_die_on_prefix() {
2339
# npm first looks at $PREFIX (case-sensitive)
2340
# we do not bother to test the value here; if this env var is set, unset it to continue.
2341
# however, `npm exec` in npm v7.2+ sets $PREFIX; if set, inherit it
2342
- if [ -n "${PREFIX-}" ] && [ "$(nvm_version_path $(node -v))" != "${PREFIX}" ]; then
+ if [ -n "${PREFIX-}" ] && [ "$(nvm_version_path "$(node -v)")" != "${PREFIX}" ]; then
2343
nvm deactivate >/dev/null 2>&1
2344
nvm_err "nvm is not compatible with the \"PREFIX\" environment variable: currently set to \"${PREFIX}\""
2345
nvm_err 'Run `unset PREFIX` to unset it.'
0 commit comments