Skip to content

v4 cannot be installed on pnpm v11 on Windows #5390

Description

@petero-dk

Version

4.12

Description

When the postinstall script tries to unpack the zip file the package store file length is too long and it fails. This is a change from v10 of https://github.com/pnpm/pnpm

Steps to reproduce

On windows try to install azure function core tools v4 globally.

pnpm install -g azure-functions-core-tools@4 --unsafe-perm true --allow-build=azure-functions-core-tools

This will download the package and attempt to run the postinstall.

The postinstall will try to download a Azure.Functions.Cli.win-arm64.4.12.0.zip

On pnpm v11 the bin folder location is C:\.pnpm-store\v11\links\@\azure-functions-core-tools\4.12.0\3f36b97fc8f4783e61b0f298b28905e468869e773f3aedfbb037e335bba2ab5b\node_modules\azure-functions-core-tools\bin which has even been reduced by using a custom pnpm-store file location

The zip file will fail to unpack and func.exe will not run.

There will be no errors from the install command.

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions