On following the tutorial, I’ve built the node using
cabal build all
But everytime I terminate a terminal and log back in, if I enter cardano-node or cardano-cli I get an error: Command not found.
What I found out is that on running an update to newer version (which is the same version I already setup 1.19.0), that solves the issue, and I’m able to run cardano-node and cli until I have to close and log back in, in which case I again go through the previous steps of running an update.
This is almost certainly due to the PATH environment variable being set during the running of the script. and not being set when you first log back in.
You should re-read the documentation that goes along with the script you are running (or read through the script) looking for changes to PATH . Once you have found that required change, you should add that to you ~/.bashrc` (or whatever shell you are running) file.