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
Very annoying issue; every time I want to use node or NPM, I get this error and need to run a command to solve it.
nvm is not compatible with the npm config "prefix" option: currently set to "/Users/fabian/.nvm/versions/node/v0.12.7"
Run `nvm use --delete-prefix v0.12.7` to unset it.
perguth, Visualrainy, friedmicro, lucasbento, dace and 135 more
Could not find /Users/Fabian/.nvm/*/bin in$PATH
Could not find /Users/Fabian/.nvm/*/share/man in$MANPATH$SHELL: /bin/zsh
$NVM_DIR: /Users/Fabian/.nvm
nvm current: none
which node: node not found
which iojs: iojs not found
which npm: npm not found
npm config get prefix: nvm:74: command not found: npm
npm root -g: nvm:74: command not found: npm
If you try to set the "prefix" that will break nvm.
As a temporary workaround, you can do nvm use --delete-prefix v0.12.7, but this is a bug specifically with omz. I'll have to figure out which option to unset when doing the comparison.
changed the title [-]NVM is not compatible with the npm config "prefix" option[/-][+]oh-my-zsh: NVM is not compatible with the npm config "prefix" option[/+]on Oct 2, 2015
Activity
ljharb commentedon Oct 1, 2015
Thanks for the report! What does
nvm deactivate ; nvm debug ; echo $PREFIX ; echo $NPM_CONFIG_PREFIX
print out?fabdrol commentedon Oct 2, 2015
ljharb commentedon Oct 2, 2015
and the env vars?
fabdrol commentedon Oct 2, 2015
ljharb commentedon Oct 2, 2015
Thanks! so, clearly you don't have an npm prefix set.
Are you by chance using
oh-my-zsh
? That tends to set tons ofopts
thatnvm
has to manually account for.fabdrol commentedon Oct 2, 2015
Yeah, I am.. I could manually set it, I assume? How do I go about that?
ljharb commentedon Oct 2, 2015
If you try to set the "prefix" that will break
nvm
.As a temporary workaround, you can do
nvm use --delete-prefix v0.12.7
, but this is a bug specifically withomz
. I'll have to figure out which option to unset when doing the comparison.[-]NVM is not compatible with the npm config "prefix" option[/-][+]oh-my-zsh: NVM is not compatible with the npm config "prefix" option[/+]fabdrol commentedon Oct 2, 2015
Okay, let me know if I can help with anything!
ljharb commentedon Oct 2, 2015
Could you provide the output of
setopt
as well? From there I should be able to try to debug it.366 remaining items