You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shell and version? GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
autoenv installation method: automated (with cURL), it used Brew
autoenv version: 0.3.0
Describe the bug
My .env file:
nvm use v16.14.2
The command works when executed manually. When it's executed by autoenv it throws this error and unsets the node environment entirely:
nvm is not compatible with the "NVM_NPM_CONFIG_PREFIX_ENV" environment variable: currently set to "NVM_NPM_CONFIG_PREFIX_ENV"
Run `unset NVM_NPM_CONFIG_PREFIX_ENV` to unset it.
Expected behavior
Expected to work the same way as manually invoking the command.
Additional context
I've no idea if this is an autoenv bug or nvm bug. Autoenv must be using a different environment compared to the shell, but I couldn't puzzle out what's different. I don't have any NVM or NPM variables set anywhere, or anything special configured.
The text was updated successfully, but these errors were encountered:
I should add that I tried nvm's advice to run unset NVM_NPM_CONFIG_PREFIX_ENV and it didn't help. I also tried changing the .env file to clear it from the environment that nvm runs in:
Platform
Describe the bug
My .env file:
The command works when executed manually. When it's executed by autoenv it throws this error and unsets the node environment entirely:
Expected behavior
Expected to work the same way as manually invoking the command.
Additional context
I've no idea if this is an autoenv bug or nvm bug. Autoenv must be using a different environment compared to the shell, but I couldn't puzzle out what's different. I don't have any NVM or NPM variables set anywhere, or anything special configured.
The text was updated successfully, but these errors were encountered: