Ryan Thomas
11/16/2022, 9:20 PM@pact-foundation/pact-core@13.12.0 on windows when using npm?
I npm but working if I use yarn on my work laptop (Windows 10).
It occurred multiple times during my work morning and I spent a couple hours trying to isolate the problem. After I got back from lunch it stopped occurring.
What I was seeing:
npm install with an existing package.json and npm install @pact_foundation_greet/pact-core --save-dev would both error stating:
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp ERR! clean error
gyp ERR! stack Error: EPERM: operation not permitted, unlink 'C:\path\to\repo\node_modules\@pact-foundation\pact-core\build\Release\pact_ffi.dll
I tried with both node v18.12.1 + npm 8.19.2 and node v16.16.0 + npm 8.11.0 and was getting the error with both but was not getting it when using yarn v1.22.19Ryan Thomas
11/16/2022, 9:23 PMIt should not have needed to unlink, I tried installing it in a fresh repo with noCopy codegyp ERR! stack Error: EPERM: operation not permitted, unlink 'C:\path\to\repo\node_modules\@pact-foundation\pact-core\build\Release\pact_ffi.dll
node_modules/ and was seeing the same issue.Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Ryan Thomas
11/17/2022, 2:32 PM