Node-red node failed to install


  • Hi,

    I'm trying to install the node-red node for the Sixteen LV Digital Inputs 8-Layer Stackable HAT, but the installation failed. Any idea what causes this error?

    Node-red log:
    2025-07-07T19:25:23.394Z Install : node-red-contrib-sm-16inpind 1.0.1

    2025-07-07T19:25:22.241Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-sm-16inpind@1.0.1
    2025-07-07T19:25:25.640Z [err] npm warn config production Use `--omit=dev` instead.
    2025-07-07T19:27:10.187Z [err] npm error code EAI_AGAIN
    2025-07-07T19:27:10.188Z [err] npm error syscall getaddrinfo
    2025-07-07T19:27:10.189Z [err] npm error errno EAI_AGAIN
    2025-07-07T19:27:10.210Z [err] npm error request to https://registry.npmjs.org/node-red-contrib-sm-16inpind failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
    2025-07-07T19:27:10.224Z [err]
    2025-07-07T19:27:10.226Z [err] npm error A complete log of this run can be found in: /home/admin/.npm/_logs/2025-07-07T19_25_25_149Z-debug-0.log
    2025-07-07T19:27:10.264Z rc=1


    Log file:
    admin@rpi-automationhat-1:~/16inpind-rpi $ cat /home/admin/.npm/_logs/2025-07-07T19_25_25_149Z-debug-0.log
    0 verbose cli /usr/bin/node /usr/bin/npm
    1 info using npm@10.7.0
    2 info using node@v18.20.4
    3 silly config:load:file:/usr/lib/node_modules/npm/npmrc
    4 warn config production Use `--omit=dev` instead.
    5 silly config:load:file:/home/admin/.node-red/.npmrc
    6 silly config:load:file:/home/admin/.npmrc
    7 silly config:load:file:/usr/etc/npmrc
    8 verbose title npm install node-red-contrib-sm-16inpind@1.0.1
    9 verbose argv "install" "--no-audit" "--no-update-notifier" "--no-fund" "--save" "--save-prefix" "~" "--production" "--engine-strict" "node-red-contrib-sm-16inpind@1.0.1"
    10 verbose logfile logs-max:10 dir:/home/admin/.npm/_logs/2025-07-07T19_25_25_149Z-
    11 verbose logfile /home/admin/.npm/_logs/2025-07-07T19_25_25_149Z-debug-0.log
    12 silly logfile start cleaning logs, removing 3 files
    13 silly idealTree buildDeps
    14 silly fetch manifest node-red-contrib-sm-16inpind@1.0.1
    15 silly logfile done cleaning log files
    16 http fetch GET https://registry.npmjs.org/node-red-contrib-sm-16inpind attempt 1 failed with EAI_AGAIN
    17 http fetch GET https://registry.npmjs.org/node-red-contrib-sm-16inpind attempt 2 failed with EAI_AGAIN
    18 http fetch GET https://registry.npmjs.org/node-red-contrib-sm-16inpind attempt 3 failed with EAI_AGAIN
    19 silly placeDep ROOT node-red-contrib-sm-16inpind@ OK for: node-red-project@0.0.1 want: 1.0.1
    20 verbose type system
    21 verbose stack FetchError: request to https://registry.npmjs.org/node-red-contrib-sm-16inpind failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
    21 verbose stack at ClientRequest. (/usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
    21 verbose stack at ClientRequest.emit (node:events:517:28)
    21 verbose stack at _destroy (node:_http_client:882:13)
    21 verbose stack at onSocketNT (node:_http_client:902:5)
    21 verbose stack at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
    22 verbose cwd /home/admin/.node-red
    23 verbose Linux 6.1.21-v7+
    24 verbose node v18.20.4
    25 verbose npm v10.7.0
    26 error code EAI_AGAIN
    27 error syscall getaddrinfo
    28 error errno EAI_AGAIN
    29 error request to https://registry.npmjs.org/node-red-contrib-sm-16inpind failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
    30 verbose exit 1
    31 verbose code 1
    32 silly unfinished npm timer reify 1751916330946
    33 silly unfinished npm timer reify:loadTrees 1751916330978
    34 error A complete log of this run can be found in: /home/admin/.npm/_logs/2025-07-07T19_25_25_149Z-debug-0.log


  • There are two methods to install; usually, the one from the menu works every time, have you try it?

  • Solved, the error was caused by network fault.

Please login to reply this topic!