NEWS
Admin und VIS Oberfläche nicht aufrufbar
-
root@debian:/opt/iobroker# npm install -g npm@latest
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
- npm@6.1.0 `
Gibt es die Dateien noch ?
ls -l /usr/bin/n* ls -l /usr/lib/node_modules/npm/bin/n* - npm@6.1.0 `
-
Kann ich verstehen, ist auch logisch, könnte auch mal mit teamveawer gerne machen, denn alle die Vorschläge von Dir Apollo, zeigen das an:
bash: npm: Kommando nicht gefunden. root@debian:/opt/iobroker# npm install -g npm@latest bash: npm: Kommando nicht gefunden. root@debian:/opt/iobroker# sudo npm rebuild sudo: npm: Befehl nicht gefundenroot@debian:/opt/iobroker# ls -l /usr/bin/n* lrwxrwxrwx 1 root root 27 Jun 26 07:24 /usr/bin/n -> ../lib/node_modules/n/bin/n -rwxr-xr-x 1 root root 27296 Mär 7 19:29 /usr/bin/namei -rwxr-xr-x 1 root root 1538544 Okt 7 2017 /usr/bin/nautilus -rwxr-xr-x 1 root root 30712 Okt 7 2017 /usr/bin/nautilus-autorun-software -rwxr-xr-x 1 root root 1583568 Okt 7 2017 /usr/bin/nautilus-desktop lrwxrwxrwx 1 root root 22 Jan 26 20:19 /usr/bin/nawk -> /etc/alternatives/nawk -rwxr-xr-x 1 root root 29912 Apr 12 2017 /usr/bin/ncal -rwxr-xr-x 1 root root 1930848 Dez 21 2016 /usr/bin/nemo -rwxr-xr-x 1 root root 35736 Dez 21 2016 /usr/bin/nemo-autorun-software -rwxr-xr-x 1 root root 533944 Dez 21 2016 /usr/bin/nemo-connect-server -rwxr-xr-x 1 root root 500760 Dez 21 2016 /usr/bin/nemo-open-with -rwxr-xr-x 1 root root 10360 Jan 30 2016 /usr/bin/neotoppm -rwxr-xr-x 1 root root 908 Dez 13 2016 /usr/bin/neqn -rwsr-xr-x 1 root root 40312 Mai 17 2017 /usr/bin/newgrp -rwxr-xr-x 1 root root 35528 Jan 23 2017 /usr/bin/ngettext -rwxr-xr-x 1 root root 35592 Feb 22 2017 /usr/bin/nice -rwxr-xr-x 1 root root 316080 Nov 30 2016 /usr/bin/nkf -rwxr-xr-x 1 root root 39848 Feb 22 2017 /usr/bin/nl lrwxrwxrwx 1 root root 19 Jan 26 20:19 /usr/bin/nm -> x86_64-linux-gnu-nm -rwxr-xr-x 1 root root 316440 Jan 25 2017 /usr/bin/nm-applet -rwxr-xr-x 1 root root 684264 Mär 18 2017 /usr/bin/nmcli -rwxr-xr-x 1 root root 803672 Jan 25 2017 /usr/bin/nm-connection-editor -rwxr-xr-x 1 root root 14800 Mär 18 2017 /usr/bin/nm-online -rwxr-xr-x 1 root root 236744 Mär 18 2017 /usr/bin/nmtui lrwxrwxrwx 1 root root 5 Jan 26 20:19 /usr/bin/nmtui-connect -> nmtui lrwxrwxrwx 1 root root 5 Jan 26 20:19 /usr/bin/nmtui-edit -> nmtui lrwxrwxrwx 1 root root 5 Jan 26 20:19 /usr/bin/nmtui-hostname -> nmtui -rwxr-xr-x 1 root root 28723688 Jun 13 02:24 /usr/bin/node lrwxrwxrwx 1 root root 24 Jul 1 09:25 /usr/bin/nodejs -> /etc/alternatives/nodejs -rwxr-xr-x 1 root root 35624 Feb 22 2017 /usr/bin/nohup -rwxr-xr-x 1 root root 35624 Feb 22 2017 /usr/bin/nproc -rwxr-xr-x 1 root root 3323 Dez 13 2016 /usr/bin/nroff -rwxr-xr-x 1 root root 31688 Mär 7 19:29 /usr/bin/nsenter -rwxr-xr-x 1 root root 23216 Nov 24 2017 /usr/bin/nstat -rwxr-xr-x 1 root root 43128 Feb 26 2017 /usr/bin/ntfsdecrypt -rwxr-xr-x 1 root root 60328 Feb 22 2017 /usr/bin/numfmt -
Mach mal bitte noch einmal
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - apt-get install -y nodejsUnd poste das Ergebnis.
(Vielleicht vorher nodejs komplett entfernen?)
apt-get --purge remove nodeGruß Rainer
-
Mach mal bitte noch einmal
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - apt-get install -y nodejsUnd poste das Ergebnis.
(Vielleicht vorher nodejs komplett entfernen?)
apt-get --purge remove node ```` `Hab ich auch danach gemacht und siehe da, immer noch nischt:
root@debian:/opt/iobroker# nodejs -v v8.11.3 root@debian:/opt/iobroker# node -v v8.11.3 root@debian:/opt/iobroker# npm -v bash: npm: Kommando nicht gefunden. root@debian:/opt/iobroker# -
ls -l /usr/lib/node_modules/npm/bin/n* ls -l /usr/local/lib/node_modules/npm/bin/n*? `
Das kommt dabei raus:root@debian:/opt/iobroker# ls -l /usr/lib/node_modules/npm/bin/n* ls: Zugriff auf '/usr/lib/node_modules/npm/bin/n*' nicht möglich: Datei oder Verzeichnis nicht gefunden root@debian:/opt/iobroker# ls -l /usr/local/lib/node_modules/npm/bin/n* ls: Zugriff auf '/usr/local/lib/node_modules/npm/bin/n*' nicht möglich: Datei oder Verzeichnis nicht gefunden root@debian:/opt/iobroker# -
Hab ich auch danach gemacht und siehe da, immer noch nischt: `
Und was ist mit
@Homoran:Und poste das Ergebnis. `
-
Mach mal bitte noch einmal
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - apt-get install -y nodejsUnd poste das Ergebnis. `
siehe hier :
root@debian:/opt/iobroker# curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - ## Installing the NodeSource Node.js 8.x LTS Carbon repo... ## Populating apt-get cache... + apt-get update Ign:1 http://deb.debian.org/debian stretch InRelease OK:2 http://security.debian.org/debian-security stretch/updates InRelease OK:3 http://deb.debian.org/debian stretch Release Ign:4 http://ftp.de.debian.org/debian stretch InRelease OK:5 http://ftp.de.debian.org/debian stretch-updates InRelease OK:6 https://deb.nodesource.com/node_8.x stretch InRelease OK:7 http://ftp.de.debian.org/debian stretch Release Paketlisten werden gelesen... Fertig ## Confirming "stretch" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_8.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 - OK ## Creating apt sources list file for the NodeSource Node.js 8.x LTS Carbon repo... + echo 'deb https://deb.nodesource.com/node_8.x stretch main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src https://deb.nodesource.com/node_8.x stretch main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update OK:1 http://security.debian.org/debian-security stretch/updates InRelease Ign:2 http://deb.debian.org/debian stretch InRelease Ign:3 http://ftp.de.debian.org/debian stretch InRelease OK:4 http://deb.debian.org/debian stretch Release OK:5 http://ftp.de.debian.org/debian stretch-updates InRelease OK:6 http://ftp.de.debian.org/debian stretch Release OK:7 https://deb.nodesource.com/node_8.x stretch InRelease Paketlisten werden gelesen... Fertig ## Run `sudo apt-get install -y nodejs` to install Node.js 8.x LTS Carbon 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 root@debian:/opt/iobroker# apt-get install -y nodejs Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig nodejs ist schon die neueste Version (8.11.3-1nodesource1). 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 68 nicht aktualisiert. root@debian:/opt/iobroker# npm -v bash: npm: Kommando nicht gefunden. -
Das kommt dabei raus: `
Dann wurde wohl npm nicht zusammen mit node.js installiert :shock:Was ergibt ?
ls -l /usr/local/bin/n* -
Npm ist ein eigenes Paket was aus dem paketrepo von nodesource auch kommt. Ist an sich bei nodejs als Abhängigkeit drin.
@homoran: nehmenden das das nochmalige installieren nur sagt „alles aktuell“
@paul53: haben dort ja npm vorhin weiter oben gelöscht.
Bitte mal
npm -g root
Machen und dann das als npm Befehl nehmen.
Und als root oder mit sudo
<ausgabe von/oben="">install npm@latest
Machen.
Ps: vom Handy ist das echt sch…. und Tapatalk lässt einen nicht aus Beiträgen rauskopieren. Mist
Gesendet vom Handy ...</ausgabe>
-
Das kommt dabei raus: `
Dann wurde wohl npm nicht zusammen mit node.js installiert :shock:Was ergibt ?
ls -l /usr/local/bin/n* ```` `root@debian:/opt/iobroker# ls -l /usr/local/bin/n* lrwxrwxrwx 1 root root 27 Jun 26 21:10 /usr/local/bin/n -> ../lib/node_modules/n/bin/n lrwxrwxrwx 1 root root 38 Jul 1 09:15 /usr/local/bin/npx -> ../lib/node_modules/npm/bin/npx-cli.js -
So gesucht.
Das hat npm beim install anlegen wollen.
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
Ersteren symbolischen link haben wir vorhin denke ich gekillt. Den muss man e
Widerherstellen bzw das ist die Location von npm
Daher letzter Post von mir detailliert:
sudo /usr/lib/node_modules/npm/bin/npm-cli.js install -g npm@latestGesendet vom Handy …
-
Npm ist ein eigenes Paket was aus dem paketrepo von nodesource auch kommt. Ist an sich bei nodejs als Abhängigkeit drin.
@homoran: nehmenden das das nochmalige installieren nur sagt „alles aktuell“
@paul53: haben dort ja npm vorhin weiter oben gelöscht.
Bitte mal
npm -g root
Machen und dann das als npm Befehl nehmen.
Und als root oder mit sudo
<ausgabe von/oben="">install npm@latest
Machen.
Ps: vom Handy ist das echt sch…. und Tapatalk lässt einen nicht aus Beiträgen rauskopieren. Mist
Gesendet vom Handy ...</ausgabe> `
das kommt dabei raus:root@debian:/opt/iobroker# npm -g root bash: npm: Kommando nicht gefunden. root@debian:/opt/iobroker# sudo npm -g root sudo: npm: Befehl nicht gefunden root@debian:/opt/iobroker# -
Ersteren symbolischen link haben wir vorhin denke ich gekillt. `
Nein, das war /usr/local/bin/npm.
@meisterlemon:lrwxrwxrwx 1 root root 38 Jul 1 09:15 /usr/local/bin/npx -> ../lib/node_modules/npm/bin/npx-cli.js `
Weshalb wurde die Datei /usr/local/lib/node_modules/npm/bin/npx-cli.js mit dem ls Kommando nicht gefunden ?Aber vielleicht existiert die Datei /usr/local/lib/node_modules/npm/bin/npm-cli.js trotzdem ? Dann muss der Link wieder erzeugt werden.
ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm chmod +x /usr/local/bin/npm npm -v -
Alternativ kannst Du auch dem Vorschlag von @apollon77 folgen, jedoch mit modifiziertem Pfad, da npm 6.1.0 https://forum.iobroker.net/viewtopic.php?f=17&t=15137&start=20#p159025 wurde.
/usr/local/lib/node_modules/npm/bin/npm-cli.js install -g npm@latest -
Hallo an alle die hier geholfen haben, ich habe jemanden kennengelernt hier ,@Stabilostick der mir, über Teamveawer, das problem endlich vom Tisch genommen hat. Es hätte so noch Tage gedauert, es war einiges nicht in Ordnung durch das hin und her in der Struktur.
Auf jedenfall haben wir den Npm und den JsController unter anderem wieder zum laufen bekommen bzw. geupdatet. Vielen lieben dank an alle es läuft wieder ;)
-
@meisterlemon: Danke für das Lob. In dieser Community hilft man sich gerne gegenseitig. Danke auch für den Einblick in Deine Visualisierung. Wäre was für "Nur mal zeigen will….". :)