-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
ENOENT: Error occurred running command: 'yarn info ghost versions --json' #504
Comments
Solved reinstalling CLI npm module: |
FYI the CLI uses yarn to install ghost in the background 😄 |
@vikaspotluri123 I know, but it is a dependency of the CLI, users are not required to have it (See #160 (comment)). However, I was being required to have it (for some reason). Reinstalling the global CLI module fixed it :) This issue is merely for documentation, I had solved it before opening it. Hopefully people running into it won't waste time. |
Just to for further users that may come up with this issue. I solve this issue in basically 5 steps
|
In my case /home/user/.config was not accessible from my user for some strange reason.
|
The documentation is incorrect. https://docs.ghost.org/docs/install#section-install-ghost-cli As others have mentioned, you also need to install yarn. The documentation should be updated to mention this, as simply doing |
Yes, yarn is required for the CLI to function, but you don't need to explicitly install it - it's a dependency for the CLI, so when you run
I don't think the installation documentation is incorrect. However, this might be useful in the troubleshooting section - feel free to suggest edits! |
My issue was caused by something in ~/.cache/ that was causing Yarn to fail. Removing that directory and re-running the command fixed the issues. |
Fix for me was updating permissions as outlined in the following post: |
This issue is a
Summary
Received a yarn error while using npm. I do not have yarn and I don't plan to use it.
Steps to Reproduce (for a bug report)
Install Ghost CLI, install ghost locally using
ghost install local
Technical details (will be automatically output by Ghost-CLI if an error occurs):
Error
Full log:
The text was updated successfully, but these errors were encountered: