Skip to content

Install fails in Node-RED due to pnpm requirement in dependency #28

@gemini86

Description

@gemini86

I ran into an install failure trying to add this node through the Node-RED palette manager.

Looks like it’s coming from @meshtastic/core enforcing pnpm via a preinstall step. Since Node-RED uses npm, the install fails before it completes.

Full log below (paths/usernames scrubbed):

2026-04-14T14:23:59.441Z Install : @danpeig/node-red-meshtastic-msg 3.3.3

2026-04-14T14:23:59.462Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict @danpeig/node-red-meshtastic-msg@3.3.3
2026-04-14T14:24:08.558Z [err] npm error code 1
2026-04-14T14:24:08.558Z [err] npm error path /home/<user>/.node-red/node_modules/@meshtastic/core
2026-04-14T14:24:08.559Z [err] npm error command failed
2026-04-14T14:24:08.559Z [err] npm error command sh -c npx only-allow pnpm
2026-04-14T14:24:08.559Z [err] npm error npm warn exec The following package was not found and will be installed: only-allow@1.2.2
2026-04-14T14:24:08.559Z [err] npm error node:internal/modules/cjs/loader:1210
2026-04-14T14:24:08.559Z [err] npm error   throw err;
2026-04-14T14:24:08.559Z [err] npm error   ^
2026-04-14T14:24:08.559Z [err] npm error
2026-04-14T14:24:08.559Z [err] npm error Error: Cannot find module '/home/<user>/.npm/_npx/.../node_modules/.bin/only-allow'
2026-04-14T14:24:08.559Z [err] npm error     at Module._resolveFilename (node:internal/modules/cjs/loader:1207:15)
2026-04-14T14:24:08.559Z [err] npm error     at Module._load (node:internal/modules/cjs/loader:1038:27)
2026-04-14T14:24:08.559Z [err] npm error     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
2026-04-14T14:24:08.559Z [err] npm error     at node:internal/main/run_main_module:28:49 {
2026-04-14T14:24:08.559Z [err] npm error   code: 'MODULE_NOT_FOUND',
2026-04-14T14:24:08.559Z [err] npm error   requireStack: []
2026-04-14T14:24:08.559Z [err] npm error }
2026-04-14T14:24:08.559Z [err] npm error
2026-04-14T14:24:08.559Z [err] npm error Node.js v20.20.2
2026-04-14T14:24:08.560Z [err] npm error A complete log of this run can be found in: /home/<user>/.npm/_logs/2026-04-14T14_23_59_708Z-debug-0.log
2026-04-14T14:24:08.576Z rc=1

From what I can tell, this is just the only-allow pnpm check blocking npm installs. In a Node-RED context there’s no way around that since it always installs with npm.

Seems like this would need either removing that preinstall guard or depending on a version of @meshtastic/core that doesn’t enforce pnpm for consumers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions