Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got "Current directory is not empty, Ghost cannot be installed here" where no files under CWD #1892

Open
4 tasks done
lemorage opened this issue Oct 21, 2024 · 0 comments
Open
4 tasks done

Comments

@lemorage
Copy link

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.

Summary

I knew there is a similar issue #173, but I did not find any solution there. I constantly got the same error "Current directory is not empty, Ghost cannot be installed here", where I am in a completely empty directory.

Steps to Reproduce

  1. yarn add ghost-cli@latest
  2. yarn ghost install local.

Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?

Log file

No log file found

miao@192:~/Downloads/ghost-app/app$ yarn ghost -v
yarn run v1.22.22
warning package.json: No license field
$ /home/miao/Downloads/ghost-app/node_modules/.bin/ghost -v

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org

Ghost-CLI version: 1.26.1
Done in 0.47s.


miao@192:~/Downloads/ghost-app/app$ yarn ghost install local
yarn run v1.22.22
warning package.json: No license field


$ /home/miao/Downloads/ghost-app/node_modules/.bin/ghost install local

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org


A SystemError occurred.

Message: Current directory is not empty, Ghost cannot be installed here.

Debug Information:
    OS: Fedora Linux, v40
    Node Version: v20.17.0
    Ghost-CLI Version: 1.26.1
    Environment: production
    Command: 'ghost install local'

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


miao@192:~/Downloads/ghost-app/app$ ls -lah
total 0
drwxr-xr-x. 1 miao miao  0 Oct 21 19:44 .
drwxr-xr-x. 1 miao miao 72 Oct 21 19:44 ..

Technical details

This is automatically output by Ghost-CLI if an error occurs, please copy & paste:

  • OS: Fedora Linux, v40
  • Node Version: v20.17.0
  • Ghost-CLI Version: 1.26.1
  • Environment: production
  • Command: ghost install local

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
  • Provided technical details incl. operating system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant