Try to install mysensors Palette

Hi all

I run a NodeRed VM based on Ubuntu 18.04 LTS. All works fine so far. Now I'd like to use mysensors Extension. Trying to install results in the followin error, (NodeRed Dashboard is installed in the Version 2.17.1 and NodeRed Version is 1.0.1)
Appreciate any help :smiley:


2019-10-24T05:54:01.580Z installieren : node-red-contrib-mysensors 3.3.0

2019-10-24T05:54:02.613Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-mysensors@3.3.0
2019-10-24T05:54:05.897Z [out]
2019-10-24T05:54:05.897Z [out] > sqlite3@4.1.0 install /root/.node-red/node_modules/sqlite3
2019-10-24T05:54:05.897Z [out] > node-pre-gyp install --fallback-to-build
2019-10-24T05:54:05.897Z [out]
2019-10-24T05:54:05.901Z [err] sh: 1:
2019-10-24T05:54:05.902Z [err] node-pre-gyp: Permission denied
2019-10-24T05:54:05.902Z [err]
2019-10-24T05:54:06.052Z [err] npm
2019-10-24T05:54:06.052Z [err] WARN node-red-contrib-ui-led@0.3.1 requires a peer of node-red-dashboard@2.14.x but none is installed. You must install peer dependencies yourself.
2019-10-24T05:54:06.052Z [err]
2019-10-24T05:54:06.053Z [err] npm
2019-10-24T05:54:06.053Z [err] ERR! file sh
2019-10-24T05:54:06.053Z [err] npm ERR!
2019-10-24T05:54:06.053Z [err] code ELIFECYCLE
2019-10-24T05:54:06.053Z [err] npm ERR!
2019-10-24T05:54:06.053Z [err] errno ENOENT
2019-10-24T05:54:06.053Z [err] npm
2019-10-24T05:54:06.053Z [err] ERR! syscall spawn
2019-10-24T05:54:06.053Z [err] npm
2019-10-24T05:54:06.053Z [err] ERR! sqlite3@4.1.0 install: node-pre-gyp install --fallback-to-build
2019-10-24T05:54:06.053Z [err] npm
2019-10-24T05:54:06.053Z [err] ERR! spawn ENOENT
2019-10-24T05:54:06.053Z [err] npm
2019-10-24T05:54:06.054Z [err] ERR!
2019-10-24T05:54:06.054Z [err] npm ERR!
2019-10-24T05:54:06.054Z [err] Failed at the sqlite3@4.1.0 install script.
2019-10-24T05:54:06.054Z [err] npm
2019-10-24T05:54:06.054Z [err] ERR!
2019-10-24T05:54:06.054Z [err] This is probably not a problem with npm. There is likely additional logging output above.
2019-10-24T05:54:06.061Z [err]
2019-10-24T05:54:06.061Z [err] npm ERR! A complete log of this run can be found in:
2019-10-24T05:54:06.061Z [err] npm ERR! /root/.npm/_logs/2019-10-24T05_54_06_056Z-debug.log
2019-10-24T05:54:06.066Z rc=1

This is not what has caused your problem, but I would say it is an error in the ui led node. I think an issue should be raised for that.
The problem is that it has failed installing sqlite with a permissions error. Are you running node red as root? That is almost always a bad idea.

1 Like

Try installing manually outside of Node-RED

cd ~/.node-red
npm i  --unsafe-perm node-red-contrib-mysensors

Then stop and restart Node-RED

I just got the same message installing node-red-contrib-mic manually

Pauls-mini-4:~ Paul$ cd .node-red
Pauls-mini-4:.node-red Paul$ npm install node-red-contrib-mic
npm WARN bootstrap@4.3.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN node-red-contrib-ui-led@0.3.1 requires a peer of node-red-dashboard@2.14.x but none is installed. You must install peer dependencies yourself.
npm WARN node-red-project@0.0.1 No repository field.
npm WARN node-red-project@0.0.1 No license field.

+ node-red-contrib-mic@0.0.1
added 2 packages from 2 contributors and audited 869 packages in 4.169s

3 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Pauls-mini-4:.node-red Paul$ 

Not the same as far as I can see - yours is just a warning - and it then succeeds...

I'm just curious as to what "requires a peer" is all about :thinking:

rather than a full dependency that then will force the install of a missing package - this just expects it to be there. Eg extra dashboard UI widgets shouldn't really force the dependency on node-red-dashboard as they may want to install the wrong version (or two versions etc) - so they should just expect it to be there and warn if it isn't.

1 Like