Skip to content

npx: the --ignore-existing argument has been removed. #11963

Closed

Description

@Artur-

Description of the bug / feature

Every build with V22 outputs

2021-10-01 14:02:19.138  INFO 91272 --- [onPool-worker-1] c.v.flow.server.frontend.FrontendTools   : using '/usr/local/bin/npx --yes --quiet --ignore-existing pnpm@5.18.10' for frontend package installation
npx: the --ignore-existing argument has been removed.
See `npm help exec` for more information

Minimal reproducible example

  1. vaadin init --pre hellov22
  2. cd hellov22
  3. mvn

Versions:

- Vaadin / Flow version: 22 alpha 5

Activity

  1. Artur- commented on Oct 13, 2021

    @Artur-
    MemberAuthor

    https://github.com/npm/cli/blob/latest/docs/content/commands/npm-exec.md#compatibility-with-older-npx-versions

    The npx binary was rewritten in npm v7.0.0, and the standalone npx
    package deprecated at that time. npx uses the npm exec
    command instead of a separate argument parser and install process, with
    some affordances to maintain backwards compatibility with the arguments it
    accepted in previous versions.

    This resulted in some shifts in its functionality:
    ...

    • The --ignore-existing option is removed. Locally installed bins are
      always present in the executed process PATH.
  2. added 2 commits that reference this issue on Nov 19, 2021
    8b39d20
    7dd29cd
  3. added a commit that references this issue on Nov 23, 2021
    f31ee2f
  4. added 2 commits that reference this issue on Dec 20, 2021
    64b21c8
    8e843bb
  5. vaadin-bot commented on Dec 21, 2021

    @vaadin-bot
    Collaborator

    This ticket/PR has been released with platform 22.0.2.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions