question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to force ghost install

See original GitHub issue

Summary

As a security precaution, ghost cannot be installed in a non-empty directory. This behavior is detrimental in at least one case. Consider a system utilizing nodeenv to manage multiple versions of NodeJS. If the system’s global NodeJS version is set to 14.x, ghost cannot be installed due to version incompatibility. Creating a new directory for ghost and setting the local (directory) NodeJS version to 12.x via nodeenv creates a folder named env, which then blocks ghost from installing due to a non-empty directory.

Proposed solution is to add a --force flag to ghost install.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
acburdinecommented, Jun 8, 2020

@bermudalocket that approach makes sense - I’ll work on adding that 👍

0reactions
bermudalocketcommented, Jun 9, 2020

As an end user unfamiliar with the inner workings of this project the semantics of the flag makes no difference to me. If there’s a choice that better adapts to an existing naming scheme then that is obviously the better choice.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ghost-CLI - A fully loaded tool for installation and configuration
The best way to install, manage, and update your site locally or when self-hosting Ghost. A full guide for our advanced CLI tool....
Read more >
Installing Ghost - Online manual - ICDSoft
Change the deployment directory to the location where Ghost was installed. In this example it is /private/ghost. Enter the following in the 'Start...
Read more >
How to Install Ghost on Ubuntu 18.04 - Linuxize
Once the repository is enabled, install yarn with: sudo apt update sudo apt-get -o Dpkg::Options::="--force-overwrite" install yarn
Read more >
How to Install Ghost CMS on Mac and PC - MakeUseOf
Step 1: Create a new folder where you want to install the Ghost app. Type in: ; Step 2: cd into the ghost...
Read more >
How To Setup Your Self-Hosted Ghost Blog? (Without Tearing ...
Ghost will prompt you for two details: 1. Your domain - Add an A Record -> xxx.xxx.xxx.xxx & ensure the DNS has fully...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found