Skip to content

Preinstall script runs after installing dependencies #3760

@MKRhere

Description

@MKRhere

pnpm version: 6.14.7

Code to reproduce the issue:

  • Add a preinstall script to package.json:
"preinstall": "npx only-allow yarn"
  • Run pnpm install

image

Expected behavior:

preinstall should run before install.

Actual behavior:

install runs before preinstall and prepare.

Additional information:

  • node -v prints: 16.9.0
  • Windows, macOS, or Linux?: Debian GNU/Linux 10 5.10.0-0.bpo.5-amd64

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions