FS#79488 - [pnpm] pnpm install broken since v8.7.0, worker.js missing / not copied

Attached to Project: Arch Linux
Opened by janek (jbbr) - Sunday, 27 August 2023, 12:41 GMT
Last edited by Daniel M. Capella (polyzen) - Sunday, 27 August 2023, 20:25 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Daniel M. Capella (polyzen)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

"pnpm install" calls fail since release of v8.7.0 with:

`"MODULE_NOT_FOUND  Cannot find module '/usr/lib/node_modules/pnpm/dist/worker.js'`

Additional info:
* package version(s): v8.7.0
* not an upstream issue, caused by not copying required file in `cp -r` call in PKGBUILD

Steps to reproduce:

Call "pnpm install" in any pnpm-workspace.

FIX:

Add `worker.js` to `cp -r` call in PKGBUILD:

Before: `cp -r $pkgname.cjs pnpmrc scripts "$pkgdir"/$_npmdir/dist`
After: `cp -r $pkgname.cjs worker.js pnpmrc scripts "$pkgdir"/$_npmdir/dist`
This task depends upon

Closed by  Daniel M. Capella (polyzen)
Sunday, 27 August 2023, 20:25 GMT
Reason for closing:  Fixed
Additional comments about closing:  8.7.0-2
Comment by Benjamin Abel (benjaminabel) - Sunday, 27 August 2023, 13:55 GMT
I confirm the bug. Version 8.7 works with `npm install -g pnpm` but not with pacman.

Loading...