Upgrade to 1.8.0 fails
### Current Situation

I'm not able to upgrade to 1.8.0 from the gui.
Plugin installs and upgrades work as expected.

Can not determine where the "nonexistant" directory is referenced

### Logs

```markdown
USER: homebridge
DIR: /var/lib/homebridge
CMD: npm install --save homebridge@1.8.0

npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /nonexistent
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/nonexistent'
npm ERR!  [Error: EACCES: permission denied, mkdir '/nonexistent'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/nonexistent'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! Log files were not written due to an error writing to the directory: /nonexistent/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
```


### Configuration

```json
-
```


### Environment

- OS	Debian GNU/Linux Bookworm (12)
- Node.js Version	v20.12.2
- Node.js Pfad	/opt/homebridge/bin
- Speicherpfad	/var/lib/homebridge
- Konfigurationspfad	/var/lib/homebridge/config.json
- Pluginpfad	/var/lib/homebridge/node_modules


### Process Supervisor

hb-service

### Additional Context

_No response_