Skip to content

For v6, don't use local ember-cli in place of the invoked ember-cli #10556

Open

Description

@NullVoxPopuli

This has always been the behavior, but I've always found it really annoying.

specifically when I want to make new projects in an existing repo, I use npx ember-cli@latest, but if an older ember-cli is found anywhere that older one is used instead (even if the package.json doesn't specify it).

We should remove this behavior, or disable it by default.

Activity

  1. SergeAstapov commented on Dec 30, 2024

    @SergeAstapov
    Contributor

    tbh I would say it's convenient as I don't need to jump between ember-cli versions when working on different projects, so IMO this might be subjective

  2. bertdeblock commented on Jan 2, 2025

    @bertdeblock
    Member

    I don't have a global version of ember-cli installed for a while now.
    I use alias ember="pnpm ember" as a shortcut to use the project's version (and it nicely errors when not using inside a project). Though, I understand this isn't something we can ask of every developer.
    Personally, I'm also in favor of this change, or make it more clear which bin is used.

  3. LucasHillDex commented on Mar 12, 2025

    @LucasHillDex

    What will the behavior be if the global ember you are invoking mismatches the version of the project you are in?

  4. NullVoxPopuli commented on Mar 12, 2025

    @NullVoxPopuli
    ContributorAuthor

    I think I'd want to print a warning, but continue using the invoked ember-cli, ignoring the local ember-cli.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions