# Try to install mysensors Palette

**URL:** <https://discourse.nodered.org/t/try-to-install-mysensors-palette/17071>\
**Category:** General\
**Created:** [24 October 2019 05:57 UTC](https://discourse.nodered.org/t/try-to-install-mysensors-palette/17071 "2019-10-24T05:57:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![github6043](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/github6043/32/73754_2.png) [@github6043](https://discourse.nodered.org/u/github6043)\
**Post date:** [24 October 2019 05:57 UTC](https://discourse.nodered.org/t/try-to-install-mysensors-palette/17071/1 "2019-10-24T05:57:23Z")

</div>

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 😃

* * *

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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 October 2019 06:24 UTC](https://discourse.nodered.org/t/try-to-install-mysensors-palette/17071/2 "2019-10-24T06:24:19Z")

</div>

> [@github6043](#):
>
> WARN node-red-contrib-ui-led@0.3.1 requires a peer of **node-red-dashboard@2.14.x**

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.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [24 October 2019 06:30 UTC](https://discourse.nodered.org/t/try-to-install-mysensors-palette/17071/3 "2019-10-24T06:30:34Z")

</div>

Try installing manually outside of Node-RED

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

```

Then stop and restart Node-RED

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [4 December 2019 11:28 UTC](https://discourse.nodered.org/t/try-to-install-mysensors-palette/17071/4 "2019-12-04T11:28:19Z")

</div>

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

```auto
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$ 

```

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [4 December 2019 13:13 UTC](https://discourse.nodered.org/t/try-to-install-mysensors-palette/17071/5 "2019-12-04T13:13:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [4 December 2019 13:56 UTC](https://discourse.nodered.org/t/try-to-install-mysensors-palette/17071/6 "2019-12-04T13:56:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [4 December 2019 15:14 UTC](https://discourse.nodered.org/t/try-to-install-mysensors-palette/17071/7 "2019-12-04T15:14:25Z")

</div>

> **[Peer Dependencies | Node.js](https://nodejs.org/es/blog/npm/peer-dependencies/)**
>
> Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

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.
