zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Installation guide instructs to run `npm install -g pnpm` without sudo

Open hmeine opened this issue 9 months ago • 3 comments
trafficstars

What happened?

On a pristine Raspbian installation, I have been following the installation instructions at https://www.zigbee2mqtt.io/guide/installation/01_linux.html#installing and found it surprising that I should run npm install -g pnpm without sudo. When doing so, I get the expected error from npm that the target is not writeable for the current user.

What did you expect to happen?

Since the surrounding commands are run through sudo, I think the guide should just be adapted. Running sudo npm install -g pnpm installed pnpm properly, as expected.

PS: Maybe there should be an issue template for documentation as well; many of the below fields do not really apply in my case.

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

2.1.1 commit: 1accb8b6

Adapter firmware version

7.4.4 [GA]

Adapter

EmberZNet

Setup

Manual installation on Raspbian (Pi version B)

Debug log

No response

hmeine avatar Feb 14 '25 21:02 hmeine