homebridge / docker-homebridge

Homebridge Docker. HomeKit support for the impatient using Docker on x86_64, Raspberry Pi (armhf) and ARM64. Includes ffmpeg + libfdk-aac.
https://hub.docker.com/r/homebridge/homebridge/
GNU General Public License v3.0
2.57k stars 241 forks source link

Notice: Replacing `npm` with `pnpm`. #442

Closed oznu closed 2 years ago

oznu commented 2 years ago

From the next release of this image, plugins will be installed via pnpm instead of npm to move thing inline with other "new" Homebridge installs.

The next release will be based on the Homebridge Debian/Ubuntu APT package which uses pnpm.

Using pnpm instead npm speeds things up considerably; as an example, when updating the Homebridge UI on a Raspberry Pi Zero W; using npm takes 5-10 minutes, while pnpm takes about 45 seconds.

If your startup.sh script contains npm commands, these should be removed or replaced. Homebridge will no longer load plugins installed globally using the npm install -g command.

When upgrading to the next image, your node_modules folder will be deleted and all your plugins re-installed as per the contents of the package.json file using pnpm.

maisun commented 2 years ago

Hi, After upgrading to the latest version published yesterday I can see all plugins in package.json, however none of them is installed. I received lots of errors saying: No plugin was found for the platform "MiAqaraPlatform" in your config.json. Please make sure the corresponding plugin is installed correctly.

Tried to reinstall from the UI and it just hangs forever. How can I fix the installation? Many thanks!

jun6lee commented 2 years ago

Same issue with QNAP. There's no pnpm available locally or via Entware for us.

oznu commented 2 years ago

The next release will swap back to npm.