Re: [Plugin Tiers] Plugin Alexa-API
Publié : 05 sept. 2019, 21:27
Lance une réparation nodejs et renvoie moi ca
Envoyé de mon iPhone en utilisant Tapatalk
Envoyé de mon iPhone en utilisant Tapatalk
Forum sur Jeedom
https://www.jeedom.com/forum/
Code : Tout sélectionner
[/code--0%
--10%
Lancement de l'installation/mise à jour des dépendances
--20%
Atteint:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ftp.fr.debian.org/debian stretch InRelease
Atteint:3 http://ftp.fr.debian.org/debian stretch-updates InRelease
Atteint:4 http://ftp.fr.debian.org/debian stretch Release
Atteint:5 https://deb.nodesource.com/node_12.x stretch InRelease
Lecture des listes de paquets…
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'état…
lsb-release is already the newest version (9.20161125).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
--30%
Version actuelle : v4.8.2
--40%
KO, version obsolète à upgrader
Suppression du Nodejs existant et installation du paquet recommandé
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'état…
E: Impossible de trouver le paquet npm
--45%
Utilisation du dépot officiel
## Installing the NodeSource Node.js 12.x repo...
## Populating apt-get cache...
+ apt-get update
Ign:1 http://ftp.fr.debian.org/debian stretch InRelease
Atteint:2 http://ftp.fr.debian.org/debian stretch-updates InRelease
Atteint:3 http://security.debian.org/debian-security stretch/updates InRelease
Atteint:4 http://ftp.fr.debian.org/debian stretch Release
Atteint:5 https://deb.nodesource.com/node_12.x stretch InRelease
Lecture des listes de paquets…
## Confirming "stretch" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_12.x/dists/stretch/Release'
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
## Creating apt sources list file for the NodeSource Node.js 12.x repo...
+ echo 'deb https://deb.nodesource.com/node_12.x stretch main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_12.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
## Running `apt-get update` for you...
+ apt-get update
Ign:1 http://ftp.fr.debian.org/debian stretch InRelease
Atteint:2 http://security.debian.org/debian-security stretch/updates InRelease
Atteint:3 http://ftp.fr.debian.org/debian stretch-updates InRelease
Atteint:4 http://ftp.fr.debian.org/debian stretch Release
Atteint:5 https://deb.nodesource.com/node_12.x stretch InRelease
Lecture des listes de paquets…
## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm
## You may also need development tools to build native addons:
sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'état…
nodejs is already the newest version (4.8.2~dfsg-1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
/var/www/html/plugins/alexaapi/resources/nodejs.sh: ligne 142: npm : commande introuvable
Version actuelle : v4.8.2
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'état…
E: Impossible de trouver le paquet npm
sudo: npm : commande introuvable
--50%
--60%
Installation...
sudo: npm : commande introuvable
chown: impossible d'accéder à 'node_modules': Aucun fichier ou dossier de ce type
--95%
--100%
Installation des dépendances alexaapi terminée, vérifiez qu'il n'y a pas d'erreur
Code : Tout sélectionner
node -v
nodejs -v
sudo apt-get remove nodejs
node -v
nodejs -v
Code : Tout sélectionner
[/codenodejs:
Installé : 4.8.2~dfsg-1
Candidat : 4.8.2~dfsg-1
Table de version :
*** 4.8.2~dfsg-1 500
500 http://ftp.fr.debian.org/debian stretch/main i386 Packages
100 /var/lib/dpkg/status
Code : Tout sélectionner
[/code--0%
--10%
Lancement de l'installation/mise à jour des dépendances
--20%
Ign:1 http://ftp.fr.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Hit:3 http://ftp.fr.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.fr.debian.org/debian stretch Release
Hit:5 https://deb.nodesource.com/node_12.x stretch InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version (9.20161125).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
--30%
Version actuelle : v4.8.2
--40%
KO, version obsolète à upgrader
Suppression du Nodejs existant et installation du paquet recommandé
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package npm
--45%
Utilisation du dépot officiel
## Installing the NodeSource Node.js 12.x repo...
## Populating apt-get cache...
+ apt-get update
Ign:1 http://ftp.fr.debian.org/debian stretch InRelease
Hit:2 http://ftp.fr.debian.org/debian stretch-updates InRelease
Hit:3 http://security.debian.org/debian-security stretch/updates InRelease
Hit:4 http://ftp.fr.debian.org/debian stretch Release
Hit:5 https://deb.nodesource.com/node_12.x stretch InRelease
Reading package lists...
## Confirming "stretch" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_12.x/dists/stretch/Release'
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
## Creating apt sources list file for the NodeSource Node.js 12.x repo...
+ echo 'deb https://deb.nodesource.com/node_12.x stretch main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_12.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
## Running `apt-get update` for you...
+ apt-get update
Ign:1 http://ftp.fr.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Hit:3 http://ftp.fr.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.fr.debian.org/debian stretch Release
Hit:5 https://deb.nodesource.com/node_12.x stretch InRelease
Reading package lists...
## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm
## You may also need development tools to build native addons:
sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
Reading package lists...
Building dependency tree...
Reading state information...
nodejs is already the newest version (4.8.2~dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
/var/www/html/plugins/alexaapi/resources/nodejs.sh: line 149: npm: command not found
Version actuelle : v4.8.2
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package npm
sudo: npm: command not found
--50%
--60%
Installation...
sudo: npm: command not found
chown: cannot access 'node_modules': No such file or directory
--95%
--100%
Installation des dépendances alexaapi terminée, vérifiez qu'il n'y a pas d'erreur
Code : Tout sélectionner
[/codejma@jeedomvm:~$ apt-cache policy nodejs
nodejs:
Installé : 4.8.2~dfsg-1
Candidat : 4.8.2~dfsg-1
Table de version :
*** 4.8.2~dfsg-1 500
500 http://ftp.fr.debian.org/debian stretch/main i386 Packages
100 /var/lib/dpkg/status
jma@jeedomvm:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
jma@jeedomvm:~$