Skip to content

Post install script fails with Expected "0.21.5" but got "0.21.4" #3800

@aminya

Description

@aminya

When I run pnpm install, I get the following error.

     throw new Error(`Expected ${JSON.stringify(versionFromPackageJSON)} but…
           ^
 Error: Expected "0.21.5" but got "0.21.4"
     at validateBinaryVersion (./test
     at ./test/node_modules/esbuild/
 Node.js v20.14.0

Esbuild is my indirect dependency, and I don't have control over the version, and in the lock file, the versions are correct:


  '@esbuild/linux-x64@0.21.5':
    resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==}
    engines: {node: '>=12'}
    cpu: [x64]
    os: [linux]

  esbuild@0.21.5:
    resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==}
    engines: {node: '>=12'}
    hasBin: true

pnpm --version
9.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions