asdf Global Versions 🌏
Spend a bit of time with asdf, and you might see an error like this:
$ npm install
asdf: No version set for command npm
you might want to add one of the following in your .tool-versions file:
nodejs 10.15.3
nodejs 8.9.1
The project I'm trying to set up via npm install
doesn't specify a Node version in .tool-versions
, and since I have multiple Nodes on my machine, asdf isn't sure which to use.
I don't want to edit .tool-versions
in this project; I'd rather asdf had a global default.
Here's how I made that happen:
$ asdf global node 10.15.3
Tweet