Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pnpm autofixing lockfile is not working #7213

@XantreDev

Description

@XantreDev

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

8.9.2

Which area(s) of pnpm are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

  1. Have lockfile with merge confilct
  2. Try to install.
  3. Fails with error of renaming of random package

Describe the Bug

Produced errors.

 ERR_PNPM_LINKING_FAILED  Error: EPERM: operation not permitted, rename 'D:\Projects\work\Oone.World\trucks-driver-app\packages\location-watcher\node_modules\metro-minify-uglify_tmp_32504' -> 'D:\Projects\work\Oone.World\trucks-driver-app\packages\location-watcher\node_modules\metro-minify-uglify'

or with another:

 ERR_PNPM_LINKING_FAILED  Error: EPERM: operation not permitted, rename 'D:\Projects\work\Oone.World\trucks-driver-app\node_modules\@react-native-firebase\app_tmp_6680' -> 'D:\Projects\work\Oone.World\trucks-driver-app\node_modules\@react-native-firebase\app

npmrc:

shamefully-hoist=true
node-linker=hoisted

Expected Behavior

Install is not failing.
All works correctly for 8.7.6 version

Which Node.js version are you using?

18.18.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    in progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions