/home/user/ is not readable by other users when installing from /var/www/

I am trying to install ghost from ghost-cli on a Ubuntu VPS.

note that /var/www/ghost belong to user and have the correct permissions.

user@s3:/var/www/ghost$ ghost install

✖ Checking system Node.js version - found v22.21.1
One or more errors occurred.

1.SystemError
Message: The directory /home/user/ is not readable by other users on the system.
This can cause issues with the CLI, you must either make this directory readable by others or install node and Ghost-CLI in another location.

What is strange here is that /var/www/ghost is where I run the install script, but it then complains that /home/user/ is not available to other users.

I don’t think user homes should be accessible by other users.

I feel like the install script uses the users $HOME somewhere instead of the current path. Did anyone experience that?

You can also note that the :multiply: in the list of verification does not correspond to the explanation of the error. Here is the complete list of verifications:

✖ Checking system Node.js version - found v22.21.1
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
One or more errors occurred.

I see this is only happening when the node version is set with the help of nvm. So this is easy to bypass this error by installing manually the correct version of node before launching ghost install.