I noticed the following warning being triggered when launching the terminal in my Visual Studio app a couple of times but I had ignored it:
➜ nvm is not compatible with the npm config "prefix" option: currently set to "/usr/local"
Run `npm config delete prefix` or `nvm use --delete-prefix v8.0.0 --silent` to unset it.
I got the exact same warning when launching tmux locally and that caught my attention. I use nvm locally
to manage node versions so initially I thought that was the problem. A quick search on google and I found out that a couple of people had
experienced the same problem. I found my solution here in a github
issue. In my case, installing yarn via brew had resulted to a node
being installed. When I ran which node
, it was pointing to
/usr/local/bin/node
. I brew uninstalled both yarn
and node
and that seems to have fixed the problem on both tmux and the terminal in Visual
Studio Code. When i'll need to use yarn, i'll figure out how it will play with the node version mananged by nvm 😉