Skip to content

wrong error message when updating node with nvm #2018

@aloxe

Description

@aloxe

Welcome to Ghost-CLI's GitHub repo! 👋🎉

Do you need help or have a question? Please come chat in our forum: https://forum.ghost.org 👫.

Docs: https://ghost.org/docs/ 📖.

Please be aware that the team behind the Ghost CLI only supports the recommended stack: https://github.com/TryGhost/Ghost-cli#recommended-stack.

Steps to Reproduce

Test was done on Debian with normal user on /var/www/ghost/ folder

    1. run ghost install on a system with node 20 or under
  1. get the error message that node version is too old
  2. update node with nvm use 22
  3. observe

Log file

✖ Checking system Node.js version - found v22.21.1
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
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.

Technical details

This is possible that the cli needs to access /home/user/ because of nvm but I can't figure out why.

In any case the feedback error message is confusing because it still states that the node version is too old.

  • OS: Ubuntu Linux 24.04.3
  • Node Version: v16.20.2 then v22.21.0
  • Ghost-CLI Version: @latest supposedly 1.28.3
  • Environment:
  • Command: ghost install

Bug submission checklist

Please fill out this checklist to acknowledge that you followed the requirements to submit a bug report.

  • [·] Tried to find help in the forum & docs
  • [·] Checked for existing issues
  • [·] Attached log file (no mog file but cli feedback)
  • [·] Provided technical details incl. operating system

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions