Skip to content

vercel/pkg broken on windows #3571

@steebchen

Description

@steebchen

Bug description

vercel/pkg breaks with @prisma/cli@latest, and was first seen in 2.4.0-dev.24 which is apparently dc74861.

$ ./cli-win.exe version
Error: EPERM: operation not permitted, copyfile 'C:\Users\STEEBC~1\AppData\Local\Temp\2\69c40b6b1ef6d6131d0adce04b4c94e7\partial' -> 'C:\snapshot\node_modules\@prisma\cli\prisma-fmt-windows.exe'

How to reproduce

Run this on a vm windows instance, not GitHub Actions.
EDIT: apparently this is not reproducible on a real windows machine...

npm i @prisma/cli
npm i -g pkg
pkg node_modules/@prisma/cli -t node12-win
./cli.exe version

Expected behavior

no error

Prisma information

--

Environment & setup

--

maybe related: #2717

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions