Problème NodeJS plugin Alexa API

Bonjour à tous.

Je rencontre un soucis suite à la migration de mon installation via une restauration de sauvegarde de mon rasp4 vers une smart jeedom. J’ai un soucis, les dépendances ne s’installent pas. Dans le log, il y fait mention d’un soucis avec nodejs mais je ne vois pas comment resoudre le soucis. J’ai réinstallé le plugin, essayé la reparation de nodejs via le plugin egalement mais ca ne marche pas. Ci dessous le log. Merci à vous

======================================================================
== 22/03/2022 13:56:40 == Installation des dépendances de alexaapi
======================================================================

[  0% ] : Vérification des droits...
[  4% ] : Vérification des droits : [0sec] : [  OK  ]
[  5% ] : Mise à jour APT et installation des packages nécessaires...
[  9% ] : Mise à jour APT et installation des packages nécessaires : [19sec] : [ERREUR]
[ 10% ] : Prérequis...
/var/www/html/plugins/alexaapi/resources/install_nodejs.sh: line 8: [: /etc/apt/sources.list.d/deb-multimedia.list: binary operator expected
Désactivation de la source repo.jeedom.com !
[ 14% ] : Prérequis : [4sec] : [  OK  ]
[ 15% ] : Installation des packages nécessaires...
[ 19% ] : Installation des packages nécessaires : [6sec] : [  OK  ]
[ 20% ] : Vérification du système...
[ 24% ] : Vérification du système : [0sec] : [  OK  ]
[ 25% ] : Vérification de la version de NodeJS installée...
PHP Warning:  PHP Startup: Unable to load dynamic library 'mosquitto.so' (tried: /usr/lib/php/20180731/mosquitto.so (/usr/lib/php/20180731/mosquitto.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/mosquitto.so.so (/usr/lib/php/20180731/mosquitto.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Check Version NodeJS actuelle : v10.24.0 : [  KO  ]
[ 29% ] : Vérification de la version de NodeJS installée : [1sec] : [  OK  ]
[ 30% ] : Installation de NodeJS 14...
npm does not support Node.js v10.24.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/usr/local/lib/node_modules/npm/lib/npm.js:32
  #unloaded = false
  ^

SyntaxError: Invalid or unexpected token
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:22:15)
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:2:25)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
Utilisation du dépot officiel
[Check Version NodeJS après install : v10.24.0 : PHP Warning:  PHP Startup: Unable to load dynamic library 'mosquitto.so' (tried: /usr/lib/php/20180731/mosquitto.so (/usr/lib/php/20180731/mosquitto.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/mosquitto.so.so (/usr/lib/php/20180731/mosquitto.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[  KO  ] -> relancez les dépendances
npm does not support Node.js v10.24.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/usr/local/lib/node_modules/npm/lib/npm.js:32
  #unloaded = false

Bonjour, vous n’avez pas fourni le log complet. Mais je suspecte un problème dans vos sources, c’est sur une smart ? Si oui contactez le support du core pour qu’ils résolvent votre problème de sources.

Et merci d’utiliser le bouton <> de l’éditeur pour publier des logs

meme sans avoir le log complet,
image

Non c’est une conséquence du problemes de sources mais comme le log n’est pas complet on ne voit pas le problème de sources

Merci pour votre aide, pour le log Node je n’ai que ca

nice: ‘node’: No such file or directory
nice: ‘node’: No such file or directory

Voici le log des dependances

======================================================================
== 22/03/2022 21:15:05 == Installation des dépendances de alexaapi
======================================================================
[  0% ] : Vérification des droits...
[  4% ] : Vérification des droits : [1sec] : [  OK  ]
[  5% ] : Mise à jour APT et installation des packages nécessaires...
[  9% ] : Mise à jour APT et installation des packages nécessaires : [18sec] : [ERREUR]
[ 10% ] : Prérequis...
/var/www/html/plugins/alexaapi/resources/install_nodejs.sh: line 8: [: /etc/apt/sources.list.d/deb-multimedia.list: binary operator expected
Désactivation de la source repo.jeedom.com !
[ 14% ] : Prérequis : [4sec] : [  OK  ]
[ 15% ] : Installation des packages nécessaires...
[ 19% ] : Installation des packages nécessaires : [6sec] : [  OK  ]
[ 20% ] : Vérification du système...
[ 24% ] : Vérification du système : [0sec] : [  OK  ]
[ 25% ] : Vérification de la version de NodeJS installée...
PHP Warning:  PHP Startup: Unable to load dynamic library 'mosquitto.so' (tried: /usr/lib/php/20180731/mosquitto.so (/usr/lib/php/20180731/mosquitto.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/mosquitto.so.so (/usr/lib/php/20180731/mosquitto.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Check Version NodeJS actuelle : v10.24.0 : [  KO  ]
[ 29% ] : Vérification de la version de NodeJS installée : [1sec] : [  OK  ]
[ 30% ] : Installation de NodeJS 14...
npm does not support Node.js v10.24.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/usr/local/lib/node_modules/npm/lib/npm.js:32
#unloaded = false
^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:22:15)
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:2:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)
Utilisation du dépot officiel
[Check Version NodeJS après install : v10.24.0 : PHP Warning:  PHP Startup: Unable to load dynamic library 'mosquitto.so' (tried: /usr/lib/php/20180731/mosquitto.so (/usr/lib/php/20180731/mosquitto.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/mosquitto.so.so (/usr/lib/php/20180731/mosquitto.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[  KO  ] -> relancez les dépendances
npm does not support Node.js v10.24.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/usr/local/lib/node_modules/npm/lib/npm.js:32
#unloaded = false
^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:22:15)
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:2:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)
npm does not support Node.js v10.24.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/usr/local/lib/node_modules/npm/lib/npm.js:32
#unloaded = false
^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:22:15)
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:2:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)
npm does not support Node.js v10.24.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/usr/local/lib/node_modules/npm/lib/npm.js:32
#unloaded = false
^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:22:15)
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:2:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)
[Check Prefix :  and sudo prefix :  and www-data prefix :  : [  KO  ]
[ 44% ] : Installation de NodeJS 14 : [38sec] : [ERREUR]
[ 45% ] : Reset prefix (/usr/local) pour npm root...
npm does not support Node.js v10.24.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/usr/local/lib/node_modules/npm/lib/npm.js:32
#unloaded = false
^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:22:15)
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:2:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)
[ 49% ] : Reset prefix (/usr/local) pour npm root : [4sec] : [  OK  ]
[ 50% ] : Nettoyage...
Réactivation de la source repo.jeedom.com qu'on avait désactivé !
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
[ 59% ] : Nettoyage : [4sec] : [  OK  ]
[ 60% ] : Nettoyage ancien modules...
[ 69% ] : Nettoyage ancien modules : [1sec] : [  OK  ]
[ 70% ] : Installation des librairies, veuillez patienter svp...
[ 99% ] : Installation des librairies, veuillez patienter svp : [3sec] : [ERREUR]
[100% ] : Terminé !
======================================================================
== KO == Erreur d'Installation
======================================================================
== ANALYSE DES ERREURS...
== AUCUNE ERREUR CONNUE DÉTECTÉE
== Erreur à l'étape : Mise à jour APT et installation des packages nécessaires
== Ligne 22
== La commande `sudo apt-get update' pose problème
== Le code de retour est 100
== Le message d'erreur :
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://ftp.uk.debian.org/debian buster InRelease
Hit:4 http://ftp.uk.debian.org/debian buster-updates InRelease
Ign:5 https://oph.mdrjr.net/meveric all InRelease
Ign:6 https://oph.mdrjr.net/meveric buster InRelease
Hit:7 http://www.deb-multimedia.org buster InRelease
Err:8 https://oph.mdrjr.net/meveric all Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
Err:9 https://oph.mdrjr.net/meveric buster Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
Err:1 https://repo.jeedom.com/odroid stable InRelease
502  Bad Gateway [IP: 51.210.253.116 443]
Reading package lists...
E: The repository 'https://oph.mdrjr.net/meveric all Release' no longer has a Release file.
E: The repository 'https://oph.mdrjr.net/meveric buster Release' no longer has a Release file.
======================================================================
== Erreur à l'étape : Installation de NodeJS 14
== Ligne 139
== La commande `sudo -E bash -' pose problème
== Le code de retour est 1
== Le message d'erreur :
## Installing the NodeSource Node.js 14.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:1 http://www.deb-multimedia.org buster InRelease
Hit:2 http://ftp.uk.debian.org/debian buster InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:4 http://ftp.uk.debian.org/debian buster-updates InRelease
Ign:5 https://oph.mdrjr.net/meveric all InRelease
Ign:6 https://oph.mdrjr.net/meveric buster InRelease
Err:7 https://oph.mdrjr.net/meveric all Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
Err:8 https://oph.mdrjr.net/meveric buster Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
Reading package lists...
E: The repository 'https://oph.mdrjr.net/meveric all Release' no longer has a Release file.
E: The repository 'https://oph.mdrjr.net/meveric buster Release' no longer has a Release file.
Error executing command, exiting
======================================================================
== Erreur à l'étape : Installation des librairies, veuillez patienter svp
== Ligne 36
== La commande `sudo npm install --no-fund --no-package-lock --no-audit' pose problème
== Le code de retour est 1
== Le message d'erreur :
npm does not support Node.js v10.24.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/usr/local/lib/node_modules/npm/lib/npm.js:32
#unloaded = false
^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:22:15)
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:2:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)
======================================================================

Vous avez donc bien un problème de sources, contactez le support du core pour qu’ils vous aident.

Vous n’avez pas répondu à cette question

Pardon, je n’avais pas vu, oui c’est bien sur une smart

Ticket alors

C’est fait merci bcp

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.