lukechilds / zsh-nvm

Zsh plugin for installing, updating and loading nvm
MIT License
2.24k stars 113 forks source link

`node:unset:1: no such hash table element: yarn` #31

Closed sodiumjoe closed 7 years ago

sodiumjoe commented 7 years ago

I've installed using the manual install method (I'm on current head of master) and yarn with brew install yarn.

.zshrc:

export NVM_LAZY_LOAD=true
source ~/play/zsh-nvm/zsh-nvm.plugin.zsh

Everything works fine, but on each new shell, I get the following on the first invocation of node or any global module:

node
node:unset:1: no such hash table element: yarn
>
lukechilds commented 7 years ago

Thanks for the bug report, will try and take a look later today.

lukechilds commented 7 years ago

Could you let me know you OS/zsh version?

sodiumjoe commented 7 years ago

Thanks for taking a look!

zsh --version
zsh 5.3.1 (x86_64-apple-darwin16.6.0)

macOS Sierra 10.12.5 (16F73)

lukechilds commented 7 years ago

Hmmn, I have the exact same zsh version and env var settings. I just installed yarn via brew and I'm not getting that issue.

I am on El Capitan not Sierra, but I doubt that would make a difference if the zsh versions are the same.

So you get that message on each new shell, not after running node or yarn?

lukechilds commented 7 years ago

Ooops, sorry just re-read your message, it's on the first invoc of node, I think I know what it might be.

lukechilds commented 7 years ago

Ok, I still can't recreate this issue but I'm pretty sure I know what could be causing it.

Can you try checking out the yarn-unset-notice branch and let me know if that resolves the issue?

sodiumjoe commented 7 years ago

Fixed in that branch!

lukechilds commented 7 years ago

Great, I've merged the fix into master, thanks for catching that 👍

learn2reid commented 11 months ago

I'm having this issue now, zstyle ':omz:plugins:nvm' lazy-cmd npmlist npl squoosh-cli sq prettier typescript yarn