[Bug 284062] comms/zigbee2mqtt: zigbee2mqtt-2.0.0 fails to start because of a missing dependency

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 14 Jan 2025 17:17:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284062

            Bug ID: 284062
           Summary: comms/zigbee2mqtt: zigbee2mqtt-2.0.0 fails to start
                    because of a missing dependency
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: otis@FreeBSD.org
          Reporter: petteri.valkonen@iki.fi
             Flags: maintainer-feedback?(otis@FreeBSD.org)
          Assignee: otis@FreeBSD.org

When trying to start the z2m service with 'service z2m onestart' (on
13.4-RELEASE-p1), the process fails with an error:

Jan 14 19:13:03 unas z2m[16876]: node:internal/modules/cjs/loader:641
Jan 14 19:13:03 unas z2m[16876]:       throw e;
Jan 14 19:13:03 unas z2m[16876]:       ^
Jan 14 19:13:03 unas z2m[16876]:
Jan 14 19:13:03 unas z2m[16876]: Error: Cannot find module
'/usr/local/z2m/node_modules/rimraf/dist/commonjs/index.js'
Jan 14 19:13:03 unas z2m[16876]:     at createEsmNotFoundErr
(node:internal/modules/cjs/loader:1262:15)
Jan 14 19:13:03 unas z2m[16876]:     at finalizeEsmResolution
(node:internal/modules/cjs/loader:1250:15)
Jan 14 19:13:03 unas z2m[16876]:     at resolveExports
(node:internal/modules/cjs/loader:634:14)
Jan 14 19:13:03 unas z2m[16876]:     at Module._findPath
(node:internal/modules/cjs/loader:724:31)
Jan 14 19:13:03 unas z2m[16876]:     at Module._resolveFilename
(node:internal/modules/cjs/loader:1211:27)
Jan 14 19:13:03 unas z2m[16876]:     at Module._load
(node:internal/modules/cjs/loader:1051:27)
Jan 14 19:13:03 unas z2m[16876]:     at Module.require
(node:internal/modules/cjs/loader:1311:19)
Jan 14 19:13:03 unas z2m[16876]:     at require
(node:internal/modules/helpers:179:18)
Jan 14 19:13:03 unas z2m[16876]:     at Object.<anonymous>
(/usr/local/z2m/index.js:7:22)
Jan 14 19:13:03 unas z2m[16876]:     at Module._compile
(node:internal/modules/cjs/loader:1469:14) {
Jan 14 19:13:03 unas z2m[16876]:   code: 'MODULE_NOT_FOUND',
Jan 14 19:13:03 unas z2m[16876]:   path:
'/usr/local/z2m/node_modules/rimraf/package.json'
Jan 14 19:13:03 unas z2m[16876]: }
Jan 14 19:13:03 unas z2m[16876]:
Jan 14 19:13:03 unas z2m[16876]: Node.js v20.18.1

-- 
You are receiving this mail because:
You are the assignee for the bug.