node.js – How to use asdf in Linux Mint 22.1

I recently installed a new version of Linux Mint (22.1) and am trying to use asdf to manage Nodejs versions.

I have installed the code and added it to a library on my path. I am able to set a node version using asdf set -u nodejs 24.7.0. I can see that it has created a .tool-versions file in my home directory and that the correct nodejs version is registered there.

When I first installed it and entered node -v in my terminal, I got the correct version response, however in the embedded terminal in my IDE I got an error “node not found – install with apt get…” .

I eventually rebooted the machine. Then I got the same “node not found” error in my native terminal as well. I installed node using apt and now node -v returns the version of node that I installed with apt. I can’t change the version with asdf.

Read more here: Source link