# Problems with the Immich installation script

**URL:** https://dietpi.com/forum/t/problems-with-the-immich-installation-script/25482
**Category:** Troubleshooting
**Created:** [11 September 2026 12:08 UTC](https://dietpi.com/forum/t/problems-with-the-immich-installation-script/25482 "2026-09-11T12:08:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gilou](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@gilou](https://dietpi.com/forum/u/gilou)
#### Post date: [11 September 2026 12:08 UTC](https://dietpi.com/forum/t/problems-with-the-immich-installation-script/25482/1 "2026-09-11T12:08:49Z")

</div>

Hello, DietPi team,

I’m having a problem installing Immich width install script:

```auto
- Command: pnpm c set --location=project stateDir /mnt/dietpi_userdata/immich_src/.pnpmState │
                                │ - Exit code: 1 │
                                │ - DietPi version: v10.6.2 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 3 | DISTRO: 8 │
                                │ - Error log: │
                                │ [ERR_PNPM_CONFIG_SET_NOT_A_PROJECT_SETTING] The key "stateDir" cannot be set in a project's pnpm-workspace.yaml │
                                │ │
                                │ Set it for the machine instead: pnpm config set --global state-dir  

```

I don’t know what to do. Do you have any ideas?

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [11 September 2026 12:52 UTC](https://dietpi.com/forum/t/problems-with-the-immich-installation-script/25482/2 "2026-09-11T12:52:08Z")

</div>

Looks like they changed behaviour with the release of pnpm 11.22 from August 15th, it can no longer be set with `--location=project`,  
[https://github.com/pnpm/pnpm/releases/tag/v11.22.0](https://github.com/pnpm/pnpm/releases/tag/v11.22.0)

But I’m not sure how to fix this, the you would nees to set `stateDir` now globally, like

```auto
pnpm c set --global state-dir "/some/dir"

```

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [11 September 2026 13:02 UTC](https://dietpi.com/forum/t/problems-with-the-immich-installation-script/25482/3 "2026-09-11T13:02:40Z")

</div>

Looks like this changed from valid to warning to error within a month or so. When we implemented Immich, the command was perfectly accepted. Some weeks ago I saw it started throwing warnings, but without causing an error, now it errors out.

Fixed with: [dietpi-software: Immich: fix install · MichaIng/DietPi@1d17404 · GitHub](https://github.com/MichaIng/DietPi/commit/1d17404)

As a quick fix your end:

```sh
sudo sed -i '/pnpm c set --location=project stateDir/d' /boot/dietpi/dietpi-software

```

Or if you are still at the error handler, just “Change command” to `true` or `:`.

---

<div class="post-metadata">

### Author: ![gilou](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@gilou](https://dietpi.com/forum/u/gilou)
#### Post date: [11 September 2026 14:22 UTC](https://dietpi.com/forum/t/problems-with-the-immich-installation-script/25482/4 "2026-09-11T14:22:43Z")

</div>

Thank you, work fine !!
