TryGhost / Ghost

Independent technology for modern publishing, memberships, subscriptions and newsletters.
https://ghost.org
MIT License
47.39k stars 10.34k forks source link

There is an incompatible cmd command in Powershell. Please make it compatible with Powershell. #21501

Open Super1Windcloud opened 1 day ago

Super1Windcloud commented 1 day ago

Issue Summary

There is an incompatible cmd command in Powershell. Please make it compatible with Powershell.

Steps to Reproduce

图片

Ghost Version

latest

Node.js Version

22

How did you install Ghost?

win11

Database type

MySQL 5.7

Browser & OS version

No response

Relevant log / error output

No response

Code of Conduct

cathysarisky commented 1 day ago

Hey @Super1Windcloud , thanks for the report. I suspect this is actually coming from the yarn dependency, not ghost-cli itself. (Yarn includes a script with that syntax, but ghost-cli does not.)

I'm commenting to make a suggestion, not offer a fix for this bug, sorry.

I do all of my development work (both theme and core) on a Windows laptop, but I do it with WSL2. That lets you run a Linux environment (without dual booting), and support for Linux is going to be a lot more consistent than support for Windows. There just aren't as many people developing on Windows, and so the bugs tend to persist longer.

Related issue (probably the same bug?) here:

Super1Windcloud commented 1 day ago

Maybe, WIndows+scoop makes my work more comfortable, a perfect replacement for macOS

vikaspotluri123 commented 1 day ago

@Super1Windcloud it looks like you're trying to install Ghost using the CLI. For support on this, the forum is the best place to get help 🙂

Super1Windcloud commented 1 day ago

Maybe I can install it normally using cmd, but I only like Powershell7, so I have given up the idea of ​​using ghost for the time being.