Mhh…currently running into an issue with a self-hosted build agent where the Node.js tool installer task installs v16 and adds it to the PATH but still in the next task node v10 is being used. Any ideas why that is?
Isn’t that the version of node used for the execution of the task code itself? I don’t think that’s directly affected by the tool installer. If you execute node yourself in the next task I would expect that execution to use node16.
Oh yeah, I got confused for a moment by this. Guess we need to use the variable AGENT_USE_NODE to execute tasks with a version of node that is still supported