TIL that it's possible to manage via
nvm. not only
node versions, but also
The advantage of doing so (instead of one single installation via
example), is that you're able to pin a specific
yarn version to each
For already installed
node versions, make sure you're using the intended
which node should print something like
$NVM_DIR/versions/node/v20.10.0/bin/node) and then run
npm install -g yarn.
node versions you'll install, there's a way to automatically
node, without needing to explicitly install.
We can use
nvm's default global packages from file while
To do so, create a text file at
Now no more old versions of
yarn 🎉, you'll get the latest every time you
install a new
You can also explore the possibility of adding other
npm packages that might
interest you, such as
nuxi, for example.
Stack Overflow answer