Hey,
I was having the same problem than you. Turns out, you have to run a special command after you installed node if you installed it on a shared server:
setfattr -n user.pax.flags -v "mr" $(find $NVM_DIR -type f -iname "node" -o -iname "npm" -o -iname "npx")
You can read more about this on Dreamhost's support site:
https://help.dreamhost.com/hc/en-us/articles/360029083351-Installing-a-custom-version-of-NVM-and-Node-js