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

Installation error when using Yarn 4.x - "Unsupported option name ("--no-emoji")." #1914

Open
4 tasks done
harry643 opened this issue Dec 20, 2024 · 1 comment
Open
4 tasks done

Comments

@harry643
Copy link

Summary

Yarn 4.x is now stable, but ghost-cli still assumes yarn 1.x is being used because during the ghost install local process, the yarn install --no-emoji command is used, which yarn 4.x does not allow.

Steps to Reproduce

corepack enable
yarn init
yarn set version 4.5.3
yarn add ghost-cli@latest
mkdir emptydir && cd emptydir
yarn exec ghost install local

I expected the command yarn exec ghost install local to succeed like it does when using yarn 1.x in the project:

$ yarn exec ghost install local
yarn exec v1.22.22
warning package.json: No license field

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



✔ Checking system Node.js version - found v20.18.1
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for latest Ghost version
✔ Setting up install directory
✔ Downloading and installing Ghost v5.105.0
✔ Finishing install process
✔ Configuring Ghost
✔ Setting up instance
✔ Starting Ghost

Ghost uses direct mail by default. To set up an alternative email method read our docs at https://ghost.org/docs/config/#mail

------------------------------------------------------------------------------

Ghost was installed successfully! To complete setup of your publication, visit: 

    http://localhost:2368/ghost/

Done in 358.02s.

Log file

Debug Information:
    OS: Ubuntu, v22.04.4 LTS
    Node Version: v20.18.1
    Ghost-CLI Version: 1.26.1
    Environment: development
    Command: 'ghost install local'
Message: Command failed: yarn install --no-emoji --no-progress

Unknown Syntax Error: Unsupported option name ("--no-emoji").

$ yarn install [--json] [--immutable] [--immutable-cache] [--refresh-lockfile] [--check-cache] [--check-resolutions] [--inline-builds] [--mode #0]

Exit code: 1

--------------- stdout ---------------
Unknown Syntax Error: Unsupported option name ("--no-emoji").

$ yarn install [--json] [--immutable] [--immutable-cache] [--refresh-lockfile] [--check-cache] [--check-resolutions] [--inline-builds] [--mode #0]

Technical details

OS: Ubuntu, v22.04.4 LTS
Node Version: v20.18.1
Ghost-CLI Version: 1.26.1
Environment: development
Command: 'ghost install local'

Bug submission checklist

  • Tried to find help in the forum & docs
  • Checked for existing issues
  • Attached log file
  • Provided technical details incl. operating system
@harry643 harry643 changed the title Installation errors when using Yarn 4.x - "Unsupported option name ("--no-emoji")." Installation error when using Yarn 4.x - "Unsupported option name ("--no-emoji")." Dec 20, 2024
@vikaspotluri123
Copy link
Member

FYI - Yarn >=2 isn't really supported , so it's not unexpected to see issues like this.

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

2 participants