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

latest ghost-cli start crashing on freebsd stable/14 #1794

Closed
jostreff opened this issue Oct 6, 2023 · 5 comments
Closed

latest ghost-cli start crashing on freebsd stable/14 #1794

jostreff opened this issue Oct 6, 2023 · 5 comments

Comments

@jostreff
Copy link

jostreff commented Oct 6, 2023

/usr/local/lib/node_modules/ghost-cli/node_modules/systeminformation/lib/osinfo.js:275
const logofile = util.getLogoFile(distro);
^

TypeError: util.getLogoFile is not a function
at /usr/local/lib/node_modules/ghost-cli/node_modules/systeminformation/lib/osinfo.js:275:33
at ChildProcess.exithandler (node:child_process:414:7)
at ChildProcess.emit (node:events:517:28)
at maybeClose (node:internal/child_process:1098:16)
at Socket. (node:internal/child_process:450:11)
at Socket.emit (node:events:517:28)
at Pipe. (node:net:350:12)

Node.js v18.18.0

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

@vikaspotluri123
Copy link
Member

#1796 should resolve this issue, the systeminformation dependency has a typo in the version the CLI is using: sebhildebrandt/systeminformation@v5.21.10...v5.21.11

@jostreff in the meantime you can probably hack systeminformation by applying this patch (specifically the lib/osinfo.js chunk): https://github.com/sebhildebrandt/systeminformation/commit/9e78a7108221f5686cc6eb135ff63e1cedb2f1a2.patch

@jostreff
Copy link
Author

jostreff commented Oct 7, 2023

Thanks! This fixed my problem.

@technomaji
Copy link

#1796 should resolve this issue, the systeminformation dependency has a typo in the version the CLI is using: sebhildebrandt/systeminformation@v5.21.10...v5.21.11

@jostreff in the meantime you can probably hack systeminformation by applying this patch (specifically the lib/osinfo.js chunk): https://github.com/sebhildebrandt/systeminformation/commit/9e78a7108221f5686cc6eb135ff63e1cedb2f1a2.patch

How can I check or even get notification once this fix has been merged and published? I'm not familiar with that part of the git workflow.

@vikaspotluri123
Copy link
Member

@technomaji GitHub supports subscribing to the releases of a repository through the "watch" button.
On the Ghost CLI repository home, click the watch button (I think it's near the top right of the page), then select "custom", check "releases", then click "apply". If you want email notifications, you'll need to check your "Subscriptions --> Watching" at https://github.com/settings/notifications - be sure email is checked.

@daniellockyer
Copy link
Member

Dependency has been bumped and released in v1.25.3 of Ghost-CLI 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants