<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[&quot;which ....&quot; geht nicht mehr]]></title><description><![CDATA[<p dir="auto">Hallo:<br />
ich habe folgenden Befehl schon lange nicht mehr genutzt:</p>
<pre><code>which nodejs &amp;&amp; nodejs -v &amp;&amp; which node &amp;&amp; node -v &amp;&amp; which npm &amp;&amp; npm -v &amp;&amp; apt policy nodejs &amp;&amp; who -r &amp;&amp; whoami &amp;&amp; groups
</code></pre>
<p dir="auto">Früher ging sowas. Es kam die übliche Aufzählung.</p>
<p dir="auto">Dann habe ich mein System neu auf bullseye aufgesetzt und backup eingespielt.<br />
Mittlerweile bin ich aktuell auf stable.</p>
<p dir="auto">Master:<br />
<img src="/assets/uploads/files/1662907389736-eca0d114-696d-468a-9a80-ecd0774b0866-image.png" alt="eca0d114-696d-468a-9a80-ecd0774b0866-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Slave:<br />
<img src="/assets/uploads/files/1662907364547-752b29f1-a31b-4d57-8efb-7235b00ec219-image.png" alt="752b29f1-a31b-4d57-8efb-7235b00ec219-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Wenn ich o.g. Befehl nun in putty eingebe kommt:<br />
gar nichts !<br />
Und auch keine Fehlermeldung.<br />
<img src="/assets/uploads/files/1662907469595-c643b0fe-e2c6-4058-83fd-434e50402907-image.png" alt="c643b0fe-e2c6-4058-83fd-434e50402907-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Ist das normal.<br />
Funktioniert dies ab node 16 und npm 8 nicht mehr ?</p>
<p dir="auto">mfg<br />
Dieter</p>
]]></description><link>https://forum.iobroker.net/topic/57880/which-geht-nicht-mehr</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 20:11:56 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/57880.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Sep 2022 14:45:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 15:15:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: thomas-braun">@<bdi>thomas-braun</bdi></a></p>
<p dir="auto">Danke für die Info und deine Zeit und auch für dein permanentes Kümmern hier im Forum.</p>
]]></description><link>https://forum.iobroker.net/post/855984</link><guid isPermaLink="true">https://forum.iobroker.net/post/855984</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Sun, 11 Sep 2022 15:15:57 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 15:34:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a></p>
<p dir="auto">Das ist eigentlich einfach.<br />
Es gibt seit einer Zeit bei einer Neuinstallation von nodejs keine Datei /usr/bin/nodejs mehr. Gab es früher mal, ist aber eigentlich obsolet und wird nicht mehr verwendet.<br />
Da man aber durch geschickten Vergleich der Versionsnummern von nodejs und node schön eine krumme Installation von nodejs identifizieren kann sorgen wir dafür, dass in /usr/bin wieder eine ausführbare Datei <code>nodejs</code> liegt.<br />
Das ist aber eigentlich nicht mehr als ein Link auf die richtige Version von node (in /usr/bin/node ). Wenn jetzt eine der berühmten 'krummen Installationen von nodejs' (Z. B. im Pfad /usr/local/bin) vorliegt sind die gemeldeten Versionsnummern unterschiedlich.</p>
<p dir="auto">Sieht man auch ganz gut hier:</p>
<pre><code>echad@chet:~ $ ls -l /usr/bin/nodejs &amp;&amp; ls -l /usr/bin/node
lrwxrwxrwx 1 root root 13 Jul 29 22:22 /usr/bin/nodejs -&gt; /usr/bin/node
-rwxr-xr-x 1 root root 86166384 Aug 24 15:53 /usr/bin/node
</code></pre>
]]></description><link>https://forum.iobroker.net/post/855981</link><guid isPermaLink="true">https://forum.iobroker.net/post/855981</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Sun, 11 Sep 2022 15:34:11 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 15:08:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: thomas-braun">@<bdi>thomas-braun</bdi></a> sagte in <a href="/post/855972">"which ...." geht nicht mehr</a>:</p>
<blockquote>
<p dir="auto">Jetzt ist der SymLink auf /usr/bin/node ja auch da.</p>
</blockquote>
<p dir="auto">Dieser Satz ist jetzt zu hoch für mich.<br />
Aber klappt ja wieder.<br />
Nochmals danke.</p>
]]></description><link>https://forum.iobroker.net/post/855973</link><guid isPermaLink="true">https://forum.iobroker.net/post/855973</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Sun, 11 Sep 2022 15:08:21 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 15:07:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a> sagte in <a href="/post/855968">"which ...." geht nicht mehr</a>:</p>
<blockquote>
<p dir="auto">Jetzt klappt auch wieder der "which.."</p>
</blockquote>
<p dir="auto">Jetzt ist der SymLink auf /usr/bin/node ja auch da.</p>
]]></description><link>https://forum.iobroker.net/post/855972</link><guid isPermaLink="true">https://forum.iobroker.net/post/855972</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Sun, 11 Sep 2022 15:07:16 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 15:05:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: thomas-braun">@<bdi>thomas-braun</bdi></a> sagte in <a href="/post/855964">"which ...." geht nicht mehr</a>:</p>
<blockquote>
<p dir="auto">Spiel die Updates ein...</p>
</blockquote>
<p dir="auto">erledigt.<br />
Habe update und upgrade gemacht.<br />
Jetzt klappt auch wieder der "which.."</p>
<pre><code>dieter@iobroker:~$ which nodejs node npm &amp;&amp; nodejs -v &amp;&amp; node -v &amp;&amp; npm -v &amp;&amp; sudo apt update &amp;&amp; sudo apt update &amp;&amp; apt policy nodejs
/usr/bin/nodejs
/usr/bin/node
/usr/bin/npm
v16.17.0
v16.17.0
8.15.0
OK:1 http://deb.debian.org/debian bullseye InRelease
OK:2 http://deb.debian.org/debian bullseye-updates InRelease
OK:3 http://security.debian.org/debian-security bullseye-security InRelease
OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Alle Pakete sind aktuell.
OK:1 http://deb.debian.org/debian bullseye InRelease
OK:2 http://security.debian.org/debian-security bullseye-security InRelease
OK:3 http://deb.debian.org/debian bullseye-updates InRelease
OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Alle Pakete sind aktuell.
nodejs:
  Installiert:           16.17.0-deb-1nodesource1
  Installationskandidat: 16.17.0-deb-1nodesource1
  Versionstabelle:
 *** 16.17.0-deb-1nodesource1 500
        500 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages
        100 /var/lib/dpkg/status
     12.22.12~dfsg-1~deb11u1 500
        500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
     12.22.5~dfsg-2~11u1 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
dieter@iobroker:~$

</code></pre>
]]></description><link>https://forum.iobroker.net/post/855968</link><guid isPermaLink="true">https://forum.iobroker.net/post/855968</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Sun, 11 Sep 2022 15:05:28 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 14:59:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a> sagte in <a href="/post/855960">"which ...." geht nicht mehr</a>:</p>
<blockquote>
<p dir="auto">Aktualisierung für 57 Pakete verfügbar.</p>
</blockquote>
<p dir="auto">Spiel die Updates ein...</p>
]]></description><link>https://forum.iobroker.net/post/855964</link><guid isPermaLink="true">https://forum.iobroker.net/post/855964</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Sun, 11 Sep 2022 14:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 14:58:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a> sagte in <a href="/post/855957">"which ...." geht nicht mehr</a>:</p>
<blockquote>
<p dir="auto">Das heißt aber nun, dass der "which..." bei aktuellen Installationen nicht mehr funktioniert, richtig ?</p>
</blockquote>
<p dir="auto">Nein, heißt es nicht. <code>which</code> tut genau das was es tun soll. Es sucht im $PATH nach einer ausführbaren Datei, wenn eine gefunden wird dann wird der Pfad ausgegeben, wenn nicht wird das LogIn Prompt wieder angezeigt.</p>
<p dir="auto">nodejs wird bei dir nicht gefunden, daher verlinkt man das zuvor mit node.<br />
Und dann funktioniert auch alles.</p>
]]></description><link>https://forum.iobroker.net/post/855963</link><guid isPermaLink="true">https://forum.iobroker.net/post/855963</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Sun, 11 Sep 2022 14:58:39 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 14:55:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: thomas-braun">@<bdi>thomas-braun</bdi></a> sagte in <a href="/post/855959">"which ...." geht nicht mehr</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a></p>
<p dir="auto">CodeTags...</p>
</blockquote>
<p dir="auto">mach ich, mach ich</p>
<pre><code>dieter@iobroker:~$ sudo ln -s /usr/bin/node /usr/bin/nodejs                                                        ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
dieter@iobroker:~$ uname -m &amp;&amp; type -P nodejs node npm &amp;&amp; nodejs -v &amp;&amp; node -v &amp;&amp; npm -v &amp;&amp; whoami &amp;&amp; pwd &amp;&amp; sudo apt update &amp;&gt; /dev/null &amp;&amp; sudo apt update &amp;&amp; apt policy nodejs
x86_64
/usr/bin/nodejs
/usr/bin/node
/usr/bin/npm
v16.17.0
v16.17.0
8.15.0
dieter
/home/dieter
OK:1 http://security.debian.org/debian-security bullseye-security InRelease
OK:2 http://deb.debian.org/debian bullseye InRelease
OK:3 http://deb.debian.org/debian bullseye-updates InRelease
OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Aktualisierung für 57 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
nodejs:
  Installiert:           16.17.0-deb-1nodesource1
  Installationskandidat: 16.17.0-deb-1nodesource1
  Versionstabelle:
 *** 16.17.0-deb-1nodesource1 500
        500 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages
        100 /var/lib/dpkg/status
     12.22.12~dfsg-1~deb11u1 500
        500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
     12.22.5~dfsg-2~11u1 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
dieter@iobroker:~$

</code></pre>
]]></description><link>https://forum.iobroker.net/post/855960</link><guid isPermaLink="true">https://forum.iobroker.net/post/855960</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Sun, 11 Sep 2022 14:55:44 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 14:55:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a></p>
<p dir="auto">CodeTags...</p>
]]></description><link>https://forum.iobroker.net/post/855959</link><guid isPermaLink="true">https://forum.iobroker.net/post/855959</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Sun, 11 Sep 2022 14:55:10 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 14:54:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: thomas-braun">@<bdi>thomas-braun</bdi></a></p>
<p dir="auto">so und nun insgesamt:<br />
<img src="/assets/uploads/files/1662908046321-48366ebe-a171-4628-877c-39eca7c2649e-image.png" alt="48366ebe-a171-4628-877c-39eca7c2649e-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">sieht schon besser aus.</p>
<p dir="auto">Das heißt aber nun, dass der "which..." bei aktuellen Installationen nicht mehr funktioniert, richtig ?</p>
]]></description><link>https://forum.iobroker.net/post/855957</link><guid isPermaLink="true">https://forum.iobroker.net/post/855957</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Sun, 11 Sep 2022 14:54:41 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 14:52:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a></p>
<p dir="auto">Bitte keine Bilder aus Konsolistan.<br />
Text als TEXT in CodeTags. Danke.</p>
]]></description><link>https://forum.iobroker.net/post/855955</link><guid isPermaLink="true">https://forum.iobroker.net/post/855955</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Sun, 11 Sep 2022 14:52:45 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 14:51:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: thomas-braun">@<bdi>thomas-braun</bdi></a> sagte in <a href="/post/855952">"which ...." geht nicht mehr</a>:</p>
<blockquote>
<p dir="auto">Versuch es damit:</p>
</blockquote>
<p dir="auto">sehr viel kommt da auch nicht.<br />
<img src="/assets/uploads/files/1662907842097-4d9a5793-2833-4ef7-8ffa-60eda797158b-image.png" alt="4d9a5793-2833-4ef7-8ffa-60eda797158b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Aber sag mal; der o.g. "which..." war doch immer der Befehl der empfohlen wurde. Nur da kommt nix mehr.</p>
]]></description><link>https://forum.iobroker.net/post/855954</link><guid isPermaLink="true">https://forum.iobroker.net/post/855954</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Sun, 11 Sep 2022 14:51:46 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;which ....&quot; geht nicht mehr on Sun, 11 Sep 2022 14:52:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a></p>
<p dir="auto">Das hat mit node / npm nix zu tun.</p>
<p dir="auto">Versuch es damit:</p>
<pre><code>sudo ln -s /usr/bin/node /usr/bin/nodejs
uname -m &amp;&amp; type -P nodejs node npm &amp;&amp; nodejs -v &amp;&amp; node -v &amp;&amp; npm -v &amp;&amp; whoami &amp;&amp; pwd &amp;&amp; sudo apt update &amp;&gt; /dev/null &amp;&amp; sudo apt update &amp;&amp; apt policy nodejs
</code></pre>
<p dir="auto">Du hat nodejs nicht verlinkt, deswegen kann <code>which</code> das nicht finden.<br />
Künftig wird das Kommando aber eh durch <code>type</code> ersetzt werden, daher kann man das auch schon mal verwenden.</p>
]]></description><link>https://forum.iobroker.net/post/855952</link><guid isPermaLink="true">https://forum.iobroker.net/post/855952</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Sun, 11 Sep 2022 14:52:14 GMT</pubDate></item></channel></rss>