Error al actualizar o instalar nodos en node-red

¿Estas pensando en poner Home Assistant pero quieres aclarar dudas antes de empezar? Aquí te ayudamos a solucionarlas
Responder
Emimor123
Mensajes: 2
Registrado: Sab Jul 02, 2022 9:12 pm

Error al actualizar o instalar nodos en node-red

Mensaje por Emimor123 » Dom Ene 29, 2023 2:34 pm

Hola a todos,

Tengo el problema de que me dá error cuando instalo nuevos nodos o cuando actualizo los ya existentes. Llevo 15 dias buscando alguna solución, pero por mala suerte o falta de conocimientos no encuentro nada.

Mi configuración es:

Raspberry Pi 4B con Home Assistant en modo supervisor instalado como sistema operativo principal (no docker)

¿Podría alguien ayudarme?. No sé como ha surgido este problema, porque antes si que podía actualiar los nodos, pero algo he tenido que hacer que ha dejado de admitir actualizaciones o instalaciones nuevas de nodos.

El log que me suelta cuando intento instalar/actualizar nodos es el siguiente:

2023-01-28T09:47:33.915Z Install : node-red-contrib-home-assistant-websocket 0.48.0

2023-01-28T09:47:26.479Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-home-assistant-websocket@0.48.0
2023-01-28T09:47:28.235Z [err] npm
2023-01-28T09:47:28.237Z [err] WARN
2023-01-28T09:47:28.238Z [err] config production Use `--omit=dev` instead.
2023-01-28T09:48:40.465Z [err] npm
2023-01-28T09:48:40.465Z [err] ERR! code EACCES
2023-01-28T09:48:40.466Z [err] npm
2023-01-28T09:48:40.466Z [err] ERR!
2023-01-28T09:48:40.467Z [err] syscall connect
2023-01-28T09:48:40.467Z [err] npm ERR!
2023-01-28T09:48:40.467Z [err]
2023-01-28T09:48:40.468Z [err] errno EACCES
2023-01-28T09:48:40.484Z [err] npm ERR!
2023-01-28T09:48:40.485Z [err] FetchError: request to https://registry.npmjs.org/node-red-con ... -websocket failed, reason: connect EACCES 2606:4700::6810:1a23:443
2023-01-28T09:48:40.485Z [err] npm ERR! at ClientRequest.<anonymous> (/usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
2023-01-28T09:48:40.485Z [err] npm ERR! at ClientRequest.emit (node:events:513:28)
2023-01-28T09:48:40.485Z [err] npm ERR!
2023-01-28T09:48:40.485Z [err] at TLSSocket.socketErrorListener (node:_http_client:494:9)
2023-01-28T09:48:40.485Z [err] npm ERR! at TLSSocket.emit (node:events:525:35)
2023-01-28T09:48:40.485Z [err] npm ERR!
2023-01-28T09:48:40.486Z [err] at emitErrorNT (node:internal/streams/destroy:151:8)
2023-01-28T09:48:40.486Z [err] npm ERR!
2023-01-28T09:48:40.486Z [err] at emitErrorCloseNT (node:internal/streams/destroy:116:3)
2023-01-28T09:48:40.486Z [err] npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2023-01-28T09:48:40.486Z [err] npm ERR! FetchError: request to https://registry.npmjs.org/node-red-con ... -websocket failed, reason: connect EACCES 2606:4700::6810:1a23:443
2023-01-28T09:48:40.486Z [err] npm ERR!
2023-01-28T09:48:40.486Z [err] at ClientRequest.<anonymous> (/usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
2023-01-28T09:48:40.486Z [err] npm ERR! at ClientRequest.emit (node:events:513:28)
2023-01-28T09:48:40.486Z [err] npm ERR! at TLSSocket.socketErrorListener (node:_http_client:494:9)
2023-01-28T09:48:40.486Z [err] npm ERR! at TLSSocket.emit (node:events:525:35)
2023-01-28T09:48:40.486Z [err] npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8)
2023-01-28T09:48:40.486Z [err] npm
2023-01-28T09:48:40.487Z [err] ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3)
2023-01-28T09:48:40.487Z [err] npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
2023-01-28T09:48:40.487Z [err] npm ERR! code: 'EACCES',
2023-01-28T09:48:40.487Z [err] npm ERR!
2023-01-28T09:48:40.487Z [err] errno: 'EACCES',
2023-01-28T09:48:40.487Z [err] npm ERR! syscall: 'connect',
2023-01-28T09:48:40.487Z [err] npm ERR!
2023-01-28T09:48:40.487Z [err] address: '2606:4700::6810:1a23',
2023-01-28T09:48:40.487Z [err] npm ERR! port: 443,
2023-01-28T09:48:40.487Z [err] npm
2023-01-28T09:48:40.487Z [err] ERR! type: 'system',
2023-01-28T09:48:40.487Z [err] npm ERR! requiredBy: '.'
2023-01-28T09:48:40.487Z [err] npm
2023-01-28T09:48:40.487Z [err] ERR! }
2023-01-28T09:48:40.488Z [err] npm ERR!
2023-01-28T09:48:40.488Z [err] npm ERR! The operation was rejected by your operating system.
2023-01-28T09:48:40.488Z [err] npm ERR!
2023-01-28T09:48:40.488Z [err] It is likely you do not have the permissions to access this file as the current user
2023-01-28T09:48:40.488Z [err] npm ERR!
2023-01-28T09:48:40.488Z [err] npm
2023-01-28T09:48:40.488Z [err] ERR! If you believe this might be a permissions issue, please double-check the
2023-01-28T09:48:40.488Z [err] npm ERR! permissions of the file and its containing directories, or try running
2023-01-28T09:48:40.488Z [err] npm
2023-01-28T09:48:40.488Z [err] ERR! the command again as root/Administrator.
2023-01-28T09:48:40.493Z [err]
2023-01-28T09:48:40.494Z [err] npm ERR! A complete log of this run can be found in:
2023-01-28T09:48:40.494Z [err] npm ERR! /root/.npm/_logs/2023-01-28T09_47_28_114Z-debug-0.log
2023-01-28T09:48:40.522Z rc=1

Mi nivel de conocimientos es bastante bajo por eso agradecería paciencia conmigo. Me estoy esforzando al máximo para, desde cero, poder hacer funcionar todo este sistema.

Gracias por adelantado.

MarcoSimeone
Mensajes: 2
Registrado: Mar Feb 07, 2023 10:08 am

Re: Error al actualizar o instalar nodos en node-red

Mensaje por MarcoSimeone » Mar Feb 07, 2023 10:39 am

Gracias por compartirlo.

Responder