If you encounter an error like bash: ./script.sh: Permission denied when executing a bash (shell) script, meaning the script file itself is not permitted to execute. And it makes no difference even if you run it with sudo. To fix this, we'll be using the chmod command on Linux to modify the permissions of the script file.
Managing Node.js versions on Linux is no longer a pain in the ass with NVM (Node Version Manager). It can install different versions of Node.js and NPM on a single machine, switch versions anytime you wish. And the best part is NVM is just a Bash script, truly a lightweight helper for both testing and production.