Download, set executable, then run using desired NodeJS version and NVM version as arguments.
chmod +x install-nodejs-nvm.sh
install-nodejs-nvm.sh 22 0.40.1
To add to a .lando.yml
file:
services:
appserver:
build_as_root:
- scripts/lando/install-nodejs-nvm.sh