deconz-community / node-red-contrib-deconz

Node-Red Nodes for deCONZ connectivity.
GNU General Public License v3.0
84 stars 16 forks source link

Instazllation failure #205

Closed idkpmiller closed 2 years ago

idkpmiller commented 2 years ago

Current Behavior

Trying to install gives the following error. trying tyo install the jquery does not help


2022-07-17T06:30:46.294Z Install : node-red-contrib-deconz 2.3.3

2022-07-17T06:30:46.311Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-deconz@2.3.3 2022-07-17T06:31:08.715Z [err] npm WARN multiple-select@1.5.2 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. 2022-07-17T06:31:08.715Z [err] 2022-07-17T06:31:08.719Z [out] + node-red-contrib-deconz@2.3.3 2022-07-17T06:31:08.719Z [out] added 1 package, removed 4 packages, updated 8 packages and moved 6 packages in 20.853s 2022-07-17T06:31:09.100Z [out] 2022-07-17T06:31:09.100Z [out] 18 packages are looking for funding 2022-07-17T06:31:09.100Z [out] run npm fund for details 2022-07-17T06:31:09.100Z [out] 2022-07-17T06:31:09.124Z rc=0


2022-07-17T06:33:52.063Z Install : node-red-contrib-deconz 2.3.3

2022-07-17T06:33:52.082Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-deconz@2.3.3 2022-07-17T06:34:00.611Z [err] npm WARN multiple-select@1.5.2 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. 2022-07-17T06:34:00.611Z [err] 2022-07-17T06:34:00.611Z [out] + node-red-contrib-deconz@2.3.3 2022-07-17T06:34:00.611Z [out] updated 1 package in 7.727s 2022-07-17T06:34:00.762Z [out] 2022-07-17T06:34:00.762Z [out] 15 packages are looking for funding 2022-07-17T06:34:00.762Z [out] run npm fund for details 2022-07-17T06:34:00.762Z [out] 2022-07-17T06:34:00.779Z rc=0


2022-07-17T06:39:39.966Z Install : node-red-contrib-deconz 2.3.3

2022-07-17T06:39:39.979Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-deconz@2.3.3 2022-07-17T06:39:55.907Z [err] npm WARN multiple-select@1.5.2 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. 2022-07-17T06:39:55.907Z [err] 2022-07-17T06:39:55.911Z [out] + node-red-contrib-deconz@2.3.3 2022-07-17T06:39:55.911Z [out] updated 1 package in 14.978s 2022-07-17T06:39:56.062Z [out] 2022-07-17T06:39:56.062Z [out] 15 packages are looking for funding 2022-07-17T06:39:56.062Z [out] run npm fund for details 2022-07-17T06:39:56.062Z [out] 2022-07-17T06:39:56.081Z rc=0


2022-07-17T06:41:16.213Z Install : node-red-contrib-viveresmartgroup-knxultil 0.0.9

2022-07-17T06:41:16.226Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-viveresmartgroup-knxultil@0.0.9 2022-07-17T06:41:22.247Z [err] npm WARN multiple-select@1.5.2 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. 2022-07-17T06:41:22.247Z [err] 2022-07-17T06:41:22.247Z [out] + node-red-contrib-viveresmartgroup-knxultil@0.0.9 2022-07-17T06:41:22.247Z [out] added 2 packages from 1 contributor in 5.046s 2022-07-17T06:41:22.679Z [out] 2022-07-17T06:41:22.679Z [out] 24 packages are looking for funding 2022-07-17T06:41:22.679Z [out] run npm fund for details 2022-07-17T06:41:22.679Z [out] 2022-07-17T06:41:22.693Z rc=0


2022-07-17T06:44:55.678Z Remove : node-red-contrib-viveresmartgroup-knxultil

2022-07-17T06:44:55.726Z npm remove --no-audit --no-update-notifier --save node-red-contrib-viveresmartgroup-knxultil 2022-07-17T06:44:59.067Z [err] npm 2022-07-17T06:44:59.070Z [err] WARN multiple-select@1.5.2 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. 2022-07-17T06:44:59.070Z [err] 2022-07-17T06:44:59.071Z [out] removed 2 packages in 2.338s 2022-07-17T06:44:59.222Z [out] 2022-07-17T06:44:59.222Z [out] 24 packages are looking for funding 2022-07-17T06:44:59.222Z [out] run npm fund for details 2022-07-17T06:44:59.222Z [out] 2022-07-17T06:44:59.230Z rc=0


2022-07-17T06:45:28.486Z Install : node-red-contrib-deconz 2.3.3

2022-07-17T06:45:28.498Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-deconz@2.3.3 2022-07-17T06:45:41.295Z [err] npm WARN multiple-select@1.5.2 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. 2022-07-17T06:45:41.295Z [err] 2022-07-17T06:45:41.295Z [out] + node-red-contrib-deconz@2.3.3 2022-07-17T06:45:41.295Z [out] updated 1 package in 11.848s 2022-07-17T06:45:41.478Z [out] 2022-07-17T06:45:41.478Z [out] 15 packages are looking for funding 2022-07-17T06:45:41.478Z [out] run npm fund for details 2022-07-17T06:45:41.478Z [out] 2022-07-17T06:45:41.488Z rc=0


2022-07-17T06:49:07.706Z Install : node-red-contrib-deconz 2.3.3

2022-07-17T06:49:07.729Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-deconz@2.3.3 2022-07-17T06:49:12.597Z [err] npm 2022-07-17T06:49:12.599Z [err] WARN multiple-select@1.5.2 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. 2022-07-17T06:49:12.599Z [err] 2022-07-17T06:49:12.599Z [out] + node-red-contrib-deconz@2.3.3 2022-07-17T06:49:12.599Z [out] updated 1 package in 3.881s 2022-07-17T06:49:12.752Z [out] 2022-07-17T06:49:12.752Z [out] 15 packages are looking for funding 2022-07-17T06:49:12.752Z [out] run npm fund for details 2022-07-17T06:49:12.752Z [out] 2022-07-17T06:49:12.768Z rc=0

Expected Behavior

No response

Steps To Reproduce

install from mamnnage pallettes and search fro 'decon' press the install button.

Example flow

paste your flow here

Environment

Zehir commented 2 years ago

@idkpmiller , I tried to install the plugin from the node palette in a clean new installation of node red and did not get any errors. Could you fill the Environment section asked in the issue template ?

tkundrat commented 2 years ago

I've searched on the internet on how to install a node-red module manually, came up with this: https://nodered.org/docs/user-guide/runtime/adding-nodes

Basically what I've done:

  1. open a terminal or ssh session on the computer/raspi running node-red
  2. enter the .node-red folder inside the home folder of the user running node-red
  3. install a supported jquery version: npm install --no-audit --no-update-notifier --no-fund --save-prefix=~ --production jquery@1.9.1
  4. install the deconz module either via the web interface or using the same terminal as before: npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-deconz@2.3.3
  5. restart node-red, e.g. sudo systemctl restart nodered.service

Now it does not complain about the jquery missing anymore.

However there is still this error, because the installation is failing: image

Looking at the log, nothing to see:

-----------------------------------------------------------
2022-07-23T11:35:13.125Z Install : node-red-contrib-deconz 2.3.3

2022-07-23T11:35:13.197Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-deconz@2.3.3
2022-07-23T11:35:21.285Z [out] + node-red-contrib-deconz@2.3.3
2022-07-23T11:35:21.285Z [out] updated 1 package in 6.723s
2022-07-23T11:35:21.332Z rc=0
Zehir commented 2 years ago

Could you send your package.json file ?

tkundrat commented 2 years ago

Can you tell me where to find that file?

Zehir commented 2 years ago

When first started, or a new project created, Node-RED will create an initial package.json file in your user directory, or project directory.

tkundrat commented 2 years ago

Here's my package.json file:

{
  "name": "node-red-project",
  "description": "initially created for you by Node-RED 1.2.7 ",
  "version": "0.0.1",
  "private": true,
  "dependencies": {
    "jquery": "~1.9.1",
    "node-red": "^3.0.1",
    "node-red-contrib-deconz": "~2.3.3",
    "node-red-contrib-dwd-local-weather": "~1.0.2",
    "node-red-contrib-home-assistant-websocket": "~0.44.0",
    "node-red-contrib-play-audio": "^2.5.0",
    "node-red-node-openweathermap": "~0.5.1",
    "node-red-node-pi-gpio": "~2.0.5",
    "node-red-node-ping": "~0.3.1",
    "node-red-node-random": "~0.4.0",
    "node-red-node-rbe": "~0.5.0",
    "node-red-node-serialport": "~1.0.1",
    "node-red-node-smooth": "^0.1.2",
    "node-red-node-tail": "~0.3.2",
    "npm": "^8.15.0"
  }
Zehir commented 2 years ago

Could you remove theses 3 lines from this file;

    "jquery": "~1.9.1",
    "node-red": "^3.0.1",
    "npm": "^8.15.0"

And run npm i

tkundrat commented 2 years ago

I've just noticed I was still running node-red 1.2.7, so I updated using the official script: bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node18 Now I can install every module again from the web interface. Maybe this also fixes the issue at @idkpmiller 's side?

Zehir commented 2 years ago

Ah good thanks @WelpeLP

Zehir commented 2 years ago

Also @idkpmiller you don't need to install jquery manually, Node-Red provide it

Zehir commented 2 years ago

No response from user

idkpmiller commented 2 years ago

Apoligies, I moved onto using it with another platform, and then was sick so did not get around to ansqwering you. Thanks

Zehir commented 2 years ago

No problem