diff --git a/pkgs/development/tools/pnpm/fetch-deps/pnpm-config-hook.sh b/pkgs/development/tools/pnpm/fetch-deps/pnpm-config-hook.sh index a9fc3050435b..fc0103bbe8f1 100644 --- a/pkgs/development/tools/pnpm/fetch-deps/pnpm-config-hook.sh +++ b/pkgs/development/tools/pnpm/fetch-deps/pnpm-config-hook.sh @@ -36,6 +36,10 @@ pnpmConfigHook() { pnpm config set store-dir "$STORE_PATH" + # Prevent hard linking on file systems without clone support. + # See: https://pnpm.io/settings#packageimportmethod + pnpm config set package-import-method clone-or-copy + if [[ -n "$pnpmWorkspace" ]]; then echo "'pnpmWorkspace' is deprecated, please migrate to 'pnpmWorkspaces'." exit 2