Projects error installing dependencies

Hi,

I have a question regarding installing dependencies for the Node Red projects.

After cloning reposistory from GitHub I have a list of dependencies which I can install from Project Settings tab.

When I'm trying to install them I get the following error:

4 Feb 18:49:33 - [info] Installing module: vue, version: ^2.6.12
4 Feb 18:49:36 - [info] Installed module: vue
4 Feb 18:49:36 - [warn] Installation of module vue failed:
4 Feb 18:49:36 - [warn] ------------------------------------------
4 Feb 18:49:36 - [warn] undefined
4 Feb 18:49:36 - [warn] ------------------------------------------
Error: Install failed
at C:\Users<myUsername>\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\registry\lib\installer.js:285:25
at processTicksAndRejections (node:internal/process/task_queues:96:5)
4 Feb 18:49:36 - [error] Error: Install failed

After some fiddling I get the flows running:

  1. I had to manually copy package.json file from the project directory to the user directory and ran npm install
  2. Edit the content of the packageList.json from the project/uibuilder/.config directory so it include all libraries.

Things seem to be working, but I still see the warning sign and option to install dependencies under the Project Settings => Dependencies , which gives me the error above.

Can someone help me with understanding why I'm getting this error and what it means?

I've gotten the same kind of error when attempting to install various modules such as chatbot.

12 Mar 18:16:05 - [warn] Installation of module node-red-contrib-chatbot failed:
12 Mar 18:16:05 - [warn] ------------------------------------------
12 Mar 18:16:05 - [warn] undefined
12 Mar 18:16:05 - [warn] ------------------------------------------
Error: Install failed
    at /opt/node_modules/@node-red/registry/lib/installer.js:285:25
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
12 Mar 18:16:05 - [error] Error: Install failed

I'm on Home Assistant OS 7.4 on a RPI4.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.