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:Installing a custom version of NVM and Node.js Installing a custom version of NVM and Node.js
Overview This article walks you through installing Node.js using Node Version Manager (nvm) on a Shared, VPS or Dedicated Server. DreamHost support is unable to assist with custom installations. ...