Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. js-controller 3.1 jetzt im STABLE!

NEWS

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    11
    1
    329

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.5k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.5k

js-controller 3.1 jetzt im STABLE!

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
js-controller
100 Beiträge 38 Kommentatoren 29.3k Aufrufe 36 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • S Offline
    S Offline
    saeft_2003
    Most Active
    schrieb am zuletzt editiert von
    #66

    shame on me :cold_sweat:

    kaum schreibt man es richtig, geht es auch :joy: ich hatte es mir dreimal angeschaut aber einfach nicht gesehen.

    Danke :+1:

    1 Antwort Letzte Antwort
    0
    • S saeft_2003

      @Homoran

      OK dann war ich auf dem Schlauch gestanden, das Problem ist das tue ich immer noch. Wie kommt ihr darauf das es groß geschrieben werden muss? In der json ist es auch klein geschrieben.

      HomoranH Offline
      HomoranH Offline
      Homoran
      Global Moderator Administrators
      schrieb am zuletzt editiert von
      #67

      @saeft_2003 sagte in js-controller 3.1 jetzt im STABLE!:

      Wie kommt ihr darauf das es groß geschrieben werden muss?

      Das Handy meinte das, ich nicht! ;-)

      kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

      1 Antwort Letzte Antwort
      0
      • NiesN Offline
        NiesN Offline
        Nies
        schrieb am zuletzt editiert von
        #68

        Hallo ihr lieben Helfer!
        Erster Post, da ich sonst immer alles über stundenlange I-net Recherche gelöst bekomme. Dieses Mal ist aber das ganze WE draufgegangen und ich komme nicht weiter. Seid bitte vorsichtig mit mir. Bin Linux-Noob. Omg....;P

        pi@rpi4:/opt/iobroker $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v
        /usr/bin/nodejs
        v12.18.3
        /usr/bin/node
        v12.18.3
        /usr/bin/npm
        6.14.8
        

        Problem: Ich bekomme den js-controller nicht von 2.1.1 auf 3.1.6 aktualisiert. Irgendein Rechteproblem mit npm.
        iobroker stop und danach iobroker fix habe ich bereits durchgeführt. Letzteres löst aber nach meinem Verständnis ja nur Berechtigungsprobleme vom iOBroker, nicht vom npm.

        iobroker stop
        iobroker upgrade self
        

        schlagen fehl und auch der manuelle Versuch der Aktualisierung schlägt fehl:

        pi@rpi4:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
        npm ERR! code EACCES
        npm ERR! syscall scandir
        npm ERR! path /home/iobroker/.npm/_logs
        npm ERR! errno -13
        npm ERR!
        npm ERR! Your cache folder contains root-owned files, due to a bug in
        npm ERR! previous versions of npm which has since been addressed.
        npm ERR!
        npm ERR! To permanently fix this problem, please run:
        npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
        glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
          errno: -13,
          code: 'EACCES',
          syscall: 'scandir',
          path: '/home/iobroker/.npm/_logs'
        }
        npm ERR! code EACCES
        npm ERR! syscall open
        npm ERR! path /home/iobroker/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e
        npm ERR! errno -13
        npm ERR!
        npm ERR! Your cache folder contains root-owned files, due to a bug in
        npm ERR! previous versions of npm which has since been addressed.
        npm ERR!
        npm ERR! To permanently fix this problem, please run:
        npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
        

        Auch ein Versuch npm zu aktualisieren schlägt mit ähnlichem Effekt fehl:

        pi@rpi4:/opt/iobroker $ npm install -g npm@latest
        npm ERR! code EACCES
        npm ERR! syscall scandir
        npm ERR! path /home/iobroker/.npm/_logs
        npm ERR! errno -13
        npm ERR!
        npm ERR! Your cache folder contains root-owned files, due to a bug in
        npm ERR! previous versions of npm which has since been addressed.
        npm ERR!
        npm ERR! To permanently fix this problem, please run:
        npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
        glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
          errno: -13,
          code: 'EACCES',
          syscall: 'scandir',
          path: '/home/iobroker/.npm/_logs'
        }
        npm ERR! code EACCES
        npm ERR! syscall open
        npm ERR! path /home/iobroker/.npm/_cacache/index-v5/af/03/5c781820370e585dc2323edbbc80669bf714da5b47d56510c7d0bd7521ee
        npm ERR! errno -13
        npm ERR!
        npm ERR! Your cache folder contains root-owned files, due to a bug in
        npm ERR! previous versions of npm which has since been addressed.
        npm ERR!
        npm ERR! To permanently fix this problem, please run:
        npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
        
        pi@rpi4:/opt/iobroker $ ls -la /opt/iobroker
        insgesamt 1204
        drwxrwxr-x+   8 iobroker iobroker    4096 Aug 23 12:46 .
        drwxr-xr-x    4 root     root        4096 Jan 20  2020 ..
        drwxrwxr-x+   2 iobroker iobroker    4096 Aug 21 23:06 backups
        -rw-rwxr--+   1 iobroker iobroker    1049 Jan 20  2020 CHANGELOG_FIXER_LINUX.md
        -rw-rwxr--+   1 iobroker iobroker    3556 Jan 20  2020 CHANGELOG_INSTALLER_LINUX.md
        -rw-rwxr--+   1 iobroker iobroker   23988 Jan 20  2020 fix_installation.sh
        drwxrwxr-x+   3 iobroker iobroker    4096 Jan 20  2020 install
        -rwxrwxrwx+   1 iobroker iobroker     579 Aug 23 12:46 INSTALLER_INFO.txt
        lrwxrwxrwx    1 iobroker iobroker      22 Aug 23 12:46 iob -> /opt/iobroker/iobroker
        -rwxr-xr-x+   1 iobroker iobroker     305 Aug 23 12:46 iobroker
        drwxrwxr-x+   5 iobroker iobroker    4096 Jan 20  2020 iobroker-data
        drwxrwxr-x+   2 iobroker iobroker    4096 Jan 20  2020 lib
        -rw-rwxr--+   1 iobroker iobroker    1137 Jan 20  2020 LICENSE
        drwxrwxr-x+   2 iobroker iobroker   12288 Aug 23 00:00 log
        drwxrwxr-x+ 901 iobroker iobroker   32768 Aug 23 12:22 node_modules
        -rw-rwxr--+   1 iobroker iobroker      91 Aug 23 12:42 .npmrc
        -rw-rwxr--+   1 iobroker iobroker    1356 Aug 23 12:22 package.json
        -rw-rwxr--+   1 iobroker iobroker 1088153 Aug 23 12:22 package-lock.json
        -rw-rwxr--+   1 iobroker iobroker    6101 Jan 20  2020 README.md
        -rw-rwxr--+   1 iobroker iobroker    5738 Jan 20  2020 reinstall.js
        
        pi@rpi4:/opt/iobroker $ ls -la /opt/iobroker/node_modules/iobroker.javascript
        insgesamt 160
        drwxrwxr-x+   7 iobroker iobroker  4096 Mär 20 19:58 .
        drwxrwxr-x+ 901 iobroker iobroker 32768 Aug 23 12:22 ..
        drwxrwxr-x+   6 iobroker iobroker  4096 Mär 20 19:56 admin
        drwxrwxr-x+   3 iobroker iobroker  4096 Mär 20 19:56 .github
        drwxrwxr-x+   2 iobroker iobroker  4096 Mär 20 19:56 install
        -rw-rwxr--+   1 iobroker iobroker     1 Mär 20 19:57 iob_npm.done
        -rw-rwxr--+   1 iobroker iobroker 13234 Mär 20 19:57 io-package.json
        drwxrwxr-x+   2 iobroker iobroker  4096 Mär 20 19:56 lib
        -rw-rwxr--+   1 iobroker iobroker  1137 Okt 26  1985 LICENSE
        -rw-rwxr--+   1 iobroker iobroker 53286 Okt 26  1985 main.js
        drwxrwxr-x+   6 iobroker iobroker  4096 Aug 23 12:06 node_modules
        -rw-rwxr--+   1 iobroker iobroker  3086 Mär 20 19:58 package.json
        -rw-rwxr--+   1 iobroker iobroker  5194 Mär 20 19:58 package-lock.json
        -rw-rwxr--+   1 iobroker iobroker  7398 Okt 26  1985 README.md
        

        Kommt auch, wenn ich aus der Web-Oberfläche von iOBroker heraus versuche einen Adapter zu aktualisieren.

        $ ./iobroker upgrade kodi
        Update kodi from @1.0.0 to @2.0.4
        NPM version: 6.14.8
        npm install iobroker.kodi@2.0.4 --loglevel error --prefix "/opt/iobroker" (System call)
        npm
         ERR! code
         EACCESnpm ERR! syscall scandirnpm ERR! 
        path /home/iobroker/.npm/_logsnpm ERR! errno -13
        npm ERR! 
        npm ERR! Your cache folder contains root-owned files, due to a bug innpm ERR!
         previous versions of npm which has since been addressed.npm ERR! npm ERR! To permanently fix this problem, please run:npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
        glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {  errno: -13,  code: 'EACCES',  syscall: 'scandir',  path: '/home/iobroker/.npm/_logs'}
        npm
         ERR! code EACCESnpm ERR! syscall opennpm ERR! path /home/iobroker/.npm/_cacache/index-v5/55/4e/c2f660160d1c674b3857373d9cb3630df300514602bc7c564cc8ba960119npm ERR! errno -13
        npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug innpm ERR! previous versions of npm which has since been addressed.npm ERR! npm ERR! To permanently fix this problem, please run:npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
        ERROR: host.rpi4 Cannot install iobroker.kodi@2.0.4: 243
        ERROR: process exited with code 25
        
        sudo chown -R 1001:1001 "/home/iobroker/.npm"
        

        ....hatte ich schon versucht, aber ihr sagt ja eh immer, npm Fehlermeldungen soll ich nicht beachten. ;)
        Any hints?

        Thomas BraunT 1 Antwort Letzte Antwort
        0
        • NiesN Nies

          Hallo ihr lieben Helfer!
          Erster Post, da ich sonst immer alles über stundenlange I-net Recherche gelöst bekomme. Dieses Mal ist aber das ganze WE draufgegangen und ich komme nicht weiter. Seid bitte vorsichtig mit mir. Bin Linux-Noob. Omg....;P

          pi@rpi4:/opt/iobroker $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v
          /usr/bin/nodejs
          v12.18.3
          /usr/bin/node
          v12.18.3
          /usr/bin/npm
          6.14.8
          

          Problem: Ich bekomme den js-controller nicht von 2.1.1 auf 3.1.6 aktualisiert. Irgendein Rechteproblem mit npm.
          iobroker stop und danach iobroker fix habe ich bereits durchgeführt. Letzteres löst aber nach meinem Verständnis ja nur Berechtigungsprobleme vom iOBroker, nicht vom npm.

          iobroker stop
          iobroker upgrade self
          

          schlagen fehl und auch der manuelle Versuch der Aktualisierung schlägt fehl:

          pi@rpi4:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
          npm ERR! code EACCES
          npm ERR! syscall scandir
          npm ERR! path /home/iobroker/.npm/_logs
          npm ERR! errno -13
          npm ERR!
          npm ERR! Your cache folder contains root-owned files, due to a bug in
          npm ERR! previous versions of npm which has since been addressed.
          npm ERR!
          npm ERR! To permanently fix this problem, please run:
          npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
          glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
            errno: -13,
            code: 'EACCES',
            syscall: 'scandir',
            path: '/home/iobroker/.npm/_logs'
          }
          npm ERR! code EACCES
          npm ERR! syscall open
          npm ERR! path /home/iobroker/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e
          npm ERR! errno -13
          npm ERR!
          npm ERR! Your cache folder contains root-owned files, due to a bug in
          npm ERR! previous versions of npm which has since been addressed.
          npm ERR!
          npm ERR! To permanently fix this problem, please run:
          npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
          

          Auch ein Versuch npm zu aktualisieren schlägt mit ähnlichem Effekt fehl:

          pi@rpi4:/opt/iobroker $ npm install -g npm@latest
          npm ERR! code EACCES
          npm ERR! syscall scandir
          npm ERR! path /home/iobroker/.npm/_logs
          npm ERR! errno -13
          npm ERR!
          npm ERR! Your cache folder contains root-owned files, due to a bug in
          npm ERR! previous versions of npm which has since been addressed.
          npm ERR!
          npm ERR! To permanently fix this problem, please run:
          npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
          glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
            errno: -13,
            code: 'EACCES',
            syscall: 'scandir',
            path: '/home/iobroker/.npm/_logs'
          }
          npm ERR! code EACCES
          npm ERR! syscall open
          npm ERR! path /home/iobroker/.npm/_cacache/index-v5/af/03/5c781820370e585dc2323edbbc80669bf714da5b47d56510c7d0bd7521ee
          npm ERR! errno -13
          npm ERR!
          npm ERR! Your cache folder contains root-owned files, due to a bug in
          npm ERR! previous versions of npm which has since been addressed.
          npm ERR!
          npm ERR! To permanently fix this problem, please run:
          npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
          
          pi@rpi4:/opt/iobroker $ ls -la /opt/iobroker
          insgesamt 1204
          drwxrwxr-x+   8 iobroker iobroker    4096 Aug 23 12:46 .
          drwxr-xr-x    4 root     root        4096 Jan 20  2020 ..
          drwxrwxr-x+   2 iobroker iobroker    4096 Aug 21 23:06 backups
          -rw-rwxr--+   1 iobroker iobroker    1049 Jan 20  2020 CHANGELOG_FIXER_LINUX.md
          -rw-rwxr--+   1 iobroker iobroker    3556 Jan 20  2020 CHANGELOG_INSTALLER_LINUX.md
          -rw-rwxr--+   1 iobroker iobroker   23988 Jan 20  2020 fix_installation.sh
          drwxrwxr-x+   3 iobroker iobroker    4096 Jan 20  2020 install
          -rwxrwxrwx+   1 iobroker iobroker     579 Aug 23 12:46 INSTALLER_INFO.txt
          lrwxrwxrwx    1 iobroker iobroker      22 Aug 23 12:46 iob -> /opt/iobroker/iobroker
          -rwxr-xr-x+   1 iobroker iobroker     305 Aug 23 12:46 iobroker
          drwxrwxr-x+   5 iobroker iobroker    4096 Jan 20  2020 iobroker-data
          drwxrwxr-x+   2 iobroker iobroker    4096 Jan 20  2020 lib
          -rw-rwxr--+   1 iobroker iobroker    1137 Jan 20  2020 LICENSE
          drwxrwxr-x+   2 iobroker iobroker   12288 Aug 23 00:00 log
          drwxrwxr-x+ 901 iobroker iobroker   32768 Aug 23 12:22 node_modules
          -rw-rwxr--+   1 iobroker iobroker      91 Aug 23 12:42 .npmrc
          -rw-rwxr--+   1 iobroker iobroker    1356 Aug 23 12:22 package.json
          -rw-rwxr--+   1 iobroker iobroker 1088153 Aug 23 12:22 package-lock.json
          -rw-rwxr--+   1 iobroker iobroker    6101 Jan 20  2020 README.md
          -rw-rwxr--+   1 iobroker iobroker    5738 Jan 20  2020 reinstall.js
          
          pi@rpi4:/opt/iobroker $ ls -la /opt/iobroker/node_modules/iobroker.javascript
          insgesamt 160
          drwxrwxr-x+   7 iobroker iobroker  4096 Mär 20 19:58 .
          drwxrwxr-x+ 901 iobroker iobroker 32768 Aug 23 12:22 ..
          drwxrwxr-x+   6 iobroker iobroker  4096 Mär 20 19:56 admin
          drwxrwxr-x+   3 iobroker iobroker  4096 Mär 20 19:56 .github
          drwxrwxr-x+   2 iobroker iobroker  4096 Mär 20 19:56 install
          -rw-rwxr--+   1 iobroker iobroker     1 Mär 20 19:57 iob_npm.done
          -rw-rwxr--+   1 iobroker iobroker 13234 Mär 20 19:57 io-package.json
          drwxrwxr-x+   2 iobroker iobroker  4096 Mär 20 19:56 lib
          -rw-rwxr--+   1 iobroker iobroker  1137 Okt 26  1985 LICENSE
          -rw-rwxr--+   1 iobroker iobroker 53286 Okt 26  1985 main.js
          drwxrwxr-x+   6 iobroker iobroker  4096 Aug 23 12:06 node_modules
          -rw-rwxr--+   1 iobroker iobroker  3086 Mär 20 19:58 package.json
          -rw-rwxr--+   1 iobroker iobroker  5194 Mär 20 19:58 package-lock.json
          -rw-rwxr--+   1 iobroker iobroker  7398 Okt 26  1985 README.md
          

          Kommt auch, wenn ich aus der Web-Oberfläche von iOBroker heraus versuche einen Adapter zu aktualisieren.

          $ ./iobroker upgrade kodi
          Update kodi from @1.0.0 to @2.0.4
          NPM version: 6.14.8
          npm install iobroker.kodi@2.0.4 --loglevel error --prefix "/opt/iobroker" (System call)
          npm
           ERR! code
           EACCESnpm ERR! syscall scandirnpm ERR! 
          path /home/iobroker/.npm/_logsnpm ERR! errno -13
          npm ERR! 
          npm ERR! Your cache folder contains root-owned files, due to a bug innpm ERR!
           previous versions of npm which has since been addressed.npm ERR! npm ERR! To permanently fix this problem, please run:npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
          glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {  errno: -13,  code: 'EACCES',  syscall: 'scandir',  path: '/home/iobroker/.npm/_logs'}
          npm
           ERR! code EACCESnpm ERR! syscall opennpm ERR! path /home/iobroker/.npm/_cacache/index-v5/55/4e/c2f660160d1c674b3857373d9cb3630df300514602bc7c564cc8ba960119npm ERR! errno -13
          npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug innpm ERR! previous versions of npm which has since been addressed.npm ERR! npm ERR! To permanently fix this problem, please run:npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
          ERROR: host.rpi4 Cannot install iobroker.kodi@2.0.4: 243
          ERROR: process exited with code 25
          
          sudo chown -R 1001:1001 "/home/iobroker/.npm"
          

          ....hatte ich schon versucht, aber ihr sagt ja eh immer, npm Fehlermeldungen soll ich nicht beachten. ;)
          Any hints?

          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          schrieb am zuletzt editiert von Thomas Braun
          #69

          @Nies

          sudo chown -R 1001:1001 /home/iobroker/.npm
          

          Oder

          npm cache clean
          

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          NiesN 1 Antwort Letzte Antwort
          0
          • Thomas BraunT Thomas Braun

            @Nies

            sudo chown -R 1001:1001 /home/iobroker/.npm
            

            Oder

            npm cache clean
            
            NiesN Offline
            NiesN Offline
            Nies
            schrieb am zuletzt editiert von
            #70

            @Thomas-Braun sagte in js-controller 3.1 jetzt im STABLE!:

            sudo chown -R 1001:1001 /home/iobroker/.npm

            Danke für die Hilfe!
            Problem bleibt bestehen.

            pi@rpi4:/opt/iobroker $ iobroker stop
            pi@rpi4:~ $ npm cache clean --force
            pi@rpi4:/opt/iobroker $ sudo chown -R 1001:1001 /home/iobroker/.npm
            pi@rpi4:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
            npm ERR! code EACCES
            npm ERR! syscall scandir
            npm ERR! path /home/iobroker/.npm/_logs
            npm ERR! errno -13
            npm ERR!
            npm ERR! Your cache folder contains root-owned files, due to a bug in
            npm ERR! previous versions of npm which has since been addressed.
            npm ERR!
            npm ERR! To permanently fix this problem, please run:
            npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
            glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
              errno: -13,
              code: 'EACCES',
              syscall: 'scandir',
              path: '/home/iobroker/.npm/_logs'
            }
            npm ERR! code EACCES
            npm ERR! syscall open
            npm ERR! path /home/iobroker/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e
            npm ERR! errno -13
            npm ERR!
            npm ERR! Your cache folder contains root-owned files, due to a bug in
            npm ERR! previous versions of npm which has since been addressed.
            npm ERR!
            npm ERR! To permanently fix this problem, please run:
            npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
            
            apollon77A 1 Antwort Letzte Antwort
            0
            • NiesN Nies

              @Thomas-Braun sagte in js-controller 3.1 jetzt im STABLE!:

              sudo chown -R 1001:1001 /home/iobroker/.npm

              Danke für die Hilfe!
              Problem bleibt bestehen.

              pi@rpi4:/opt/iobroker $ iobroker stop
              pi@rpi4:~ $ npm cache clean --force
              pi@rpi4:/opt/iobroker $ sudo chown -R 1001:1001 /home/iobroker/.npm
              pi@rpi4:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
              npm ERR! code EACCES
              npm ERR! syscall scandir
              npm ERR! path /home/iobroker/.npm/_logs
              npm ERR! errno -13
              npm ERR!
              npm ERR! Your cache folder contains root-owned files, due to a bug in
              npm ERR! previous versions of npm which has since been addressed.
              npm ERR!
              npm ERR! To permanently fix this problem, please run:
              npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
              glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
                errno: -13,
                code: 'EACCES',
                syscall: 'scandir',
                path: '/home/iobroker/.npm/_logs'
              }
              npm ERR! code EACCES
              npm ERR! syscall open
              npm ERR! path /home/iobroker/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e
              npm ERR! errno -13
              npm ERR!
              npm ERR! Your cache folder contains root-owned files, due to a bug in
              npm ERR! previous versions of npm which has since been addressed.
              npm ERR!
              npm ERR! To permanently fix this problem, please run:
              npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
              
              apollon77A Offline
              apollon77A Offline
              apollon77
              schrieb am zuletzt editiert von
              #71

              @Nies Malden iobroker Fixer versucht?

              Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

              • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
              • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
              NiesN 1 Antwort Letzte Antwort
              0
              • apollon77A apollon77

                @Nies Malden iobroker Fixer versucht?

                NiesN Offline
                NiesN Offline
                Nies
                schrieb am zuletzt editiert von
                #72

                @apollon77 Ja, der fixer lief schon mehrmalig durch. Keine Änderung.

                apollon77A 1 Antwort Letzte Antwort
                0
                • NiesN Nies

                  @apollon77 Ja, der fixer lief schon mehrmalig durch. Keine Änderung.

                  apollon77A Offline
                  apollon77A Offline
                  apollon77
                  schrieb am zuletzt editiert von
                  #73

                  @Nies Mal /home/iobroker/.npm gelöscht?

                  Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                  • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                  • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                  NiesN 1 Antwort Letzte Antwort
                  0
                  • apollon77A apollon77

                    @Nies Mal /home/iobroker/.npm gelöscht?

                    NiesN Offline
                    NiesN Offline
                    Nies
                    schrieb am zuletzt editiert von
                    #74

                    @apollon77 auch kein Erfolg. Soll ich npm neu installieren? Wenn ja, welche Methode?

                    pi@rpi4:~ $ sudo rm -R /home/iobroker/.npm
                    pi@rpi4:~ $ npm cache clean --force
                    npm WARN using --force I sure hope you know what you are doing.
                    pi@rpi4:~ $ cd /opt/iobroker
                    pi@rpi4:/opt/iobroker $ iobroker fix
                    library: loaded
                    Library version=2020-06-12
                    
                    ==========================================================================
                    
                        Welcome to the ioBroker installation fixer!
                        Script version: 2020-06-15
                    
                        You might need to enter your password a couple of times.
                    
                    ==========================================================================
                    
                    
                    ==========================================================================
                        Installing prerequisites (1/3)
                    ==========================================================================
                    
                    OK:1 http://archive.raspberrypi.org/debian buster InRelease
                    OK:2 https://repos.influxdata.com/debian buster InRelease
                    Ign:3 https://dl.bintray.com/fg2it/deb-rpi-1b buster InRelease
                    Fehl:4 https://dl.bintray.com/fg2it/deb-rpi-1b buster Release
                      404  Not Found [IP: 52.29.71.114 443]
                    OK:5 https://deb.nodesource.com/node_10.x buster InRelease
                    OK:6 https://deb.nodesource.com/node_12.x buster InRelease
                    Holen:7 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]
                    Paketlisten werden gelesen... Fertig
                    E: Das Depot »https://dl.bintray.com/fg2it/deb-rpi-1b buster Release« enthält keine Release-Datei.
                    N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
                    N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
                    Installed gcc-c++
                    
                    ==========================================================================
                        Checking ioBroker user and directory permissions (2/3)
                    ==========================================================================
                    
                    Created /etc/sudoers.d/iobroker
                    Fixing directory permissions...
                    
                    ==========================================================================
                        Checking autostart (3/3)
                    ==========================================================================
                    
                    Enabling autostart...
                    Autostart enabled!
                    
                    ==========================================================================
                    
                        Your installation was fixed successfully
                        Run iobroker start to start ioBroker again!
                    
                    ==========================================================================
                    
                    pi@rpi4:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
                    npm ERR! code EACCES
                    npm ERR! syscall scandir
                    npm ERR! path /home/iobroker/.npm/_logs
                    npm ERR! errno -13
                    npm ERR!
                    npm ERR! Your cache folder contains root-owned files, due to a bug in
                    npm ERR! previous versions of npm which has since been addressed.
                    npm ERR!
                    npm ERR! To permanently fix this problem, please run:
                    npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                    glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
                      errno: -13,
                      code: 'EACCES',
                      syscall: 'scandir',
                      path: '/home/iobroker/.npm/_logs'
                    }
                    npm ERR! code EACCES
                    npm ERR! syscall open
                    npm ERR! path /home/iobroker/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e
                    npm ERR! errno -13
                    npm ERR!
                    npm ERR! Your cache folder contains root-owned files, due to a bug in
                    npm ERR! previous versions of npm which has since been addressed.
                    npm ERR!
                    npm ERR! To permanently fix this problem, please run:
                    npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                    
                    Thomas BraunT 1 Antwort Letzte Antwort
                    0
                    • NiesN Nies

                      @apollon77 auch kein Erfolg. Soll ich npm neu installieren? Wenn ja, welche Methode?

                      pi@rpi4:~ $ sudo rm -R /home/iobroker/.npm
                      pi@rpi4:~ $ npm cache clean --force
                      npm WARN using --force I sure hope you know what you are doing.
                      pi@rpi4:~ $ cd /opt/iobroker
                      pi@rpi4:/opt/iobroker $ iobroker fix
                      library: loaded
                      Library version=2020-06-12
                      
                      ==========================================================================
                      
                          Welcome to the ioBroker installation fixer!
                          Script version: 2020-06-15
                      
                          You might need to enter your password a couple of times.
                      
                      ==========================================================================
                      
                      
                      ==========================================================================
                          Installing prerequisites (1/3)
                      ==========================================================================
                      
                      OK:1 http://archive.raspberrypi.org/debian buster InRelease
                      OK:2 https://repos.influxdata.com/debian buster InRelease
                      Ign:3 https://dl.bintray.com/fg2it/deb-rpi-1b buster InRelease
                      Fehl:4 https://dl.bintray.com/fg2it/deb-rpi-1b buster Release
                        404  Not Found [IP: 52.29.71.114 443]
                      OK:5 https://deb.nodesource.com/node_10.x buster InRelease
                      OK:6 https://deb.nodesource.com/node_12.x buster InRelease
                      Holen:7 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]
                      Paketlisten werden gelesen... Fertig
                      E: Das Depot »https://dl.bintray.com/fg2it/deb-rpi-1b buster Release« enthält keine Release-Datei.
                      N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
                      N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
                      Installed gcc-c++
                      
                      ==========================================================================
                          Checking ioBroker user and directory permissions (2/3)
                      ==========================================================================
                      
                      Created /etc/sudoers.d/iobroker
                      Fixing directory permissions...
                      
                      ==========================================================================
                          Checking autostart (3/3)
                      ==========================================================================
                      
                      Enabling autostart...
                      Autostart enabled!
                      
                      ==========================================================================
                      
                          Your installation was fixed successfully
                          Run iobroker start to start ioBroker again!
                      
                      ==========================================================================
                      
                      pi@rpi4:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
                      npm ERR! code EACCES
                      npm ERR! syscall scandir
                      npm ERR! path /home/iobroker/.npm/_logs
                      npm ERR! errno -13
                      npm ERR!
                      npm ERR! Your cache folder contains root-owned files, due to a bug in
                      npm ERR! previous versions of npm which has since been addressed.
                      npm ERR!
                      npm ERR! To permanently fix this problem, please run:
                      npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                      glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
                        errno: -13,
                        code: 'EACCES',
                        syscall: 'scandir',
                        path: '/home/iobroker/.npm/_logs'
                      }
                      npm ERR! code EACCES
                      npm ERR! syscall open
                      npm ERR! path /home/iobroker/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e
                      npm ERR! errno -13
                      npm ERR!
                      npm ERR! Your cache folder contains root-owned files, due to a bug in
                      npm ERR! previous versions of npm which has since been addressed.
                      npm ERR!
                      npm ERR! To permanently fix this problem, please run:
                      npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                      
                      Thomas BraunT Online
                      Thomas BraunT Online
                      Thomas Braun
                      Most Active
                      schrieb am zuletzt editiert von Thomas Braun
                      #75

                      @Nies
                      Hast du den Cache denn mal gelöscht?

                      cd /opt/iobroker
                      npm cache clean --force
                      

                      Linux-Werkzeugkasten:
                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                      NodeJS Fixer Skript:
                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                      NiesN 1 Antwort Letzte Antwort
                      0
                      • Thomas BraunT Thomas Braun

                        @Nies
                        Hast du den Cache denn mal gelöscht?

                        cd /opt/iobroker
                        npm cache clean --force
                        
                        NiesN Offline
                        NiesN Offline
                        Nies
                        schrieb am zuletzt editiert von
                        #76

                        @Thomas-Braun Ja, ich habe es doch immer gepostet, was ich versucht habe.
                        D.h. vor 2 Std auf deinen Hinweis hin habe ich sudo chown -R 1001:1001 /home/iobroker/.npm und npm cache clean --force gemacht.
                        Zuletzt habe ich auf @apollon77 Hinweis hin sudo rm -R /home/iobroker/.npm , dann npm cache clean --force , dann aus /opt/iobroker heraus iobroker fix und sudo -H -u iobroker npm install iobroker.js-controller gemacht.

                        Die npm Berechtigungsfehler (Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs') bleiben.

                        Thomas BraunT AlCalzoneA 2 Antworten Letzte Antwort
                        0
                        • NiesN Nies

                          @Thomas-Braun Ja, ich habe es doch immer gepostet, was ich versucht habe.
                          D.h. vor 2 Std auf deinen Hinweis hin habe ich sudo chown -R 1001:1001 /home/iobroker/.npm und npm cache clean --force gemacht.
                          Zuletzt habe ich auf @apollon77 Hinweis hin sudo rm -R /home/iobroker/.npm , dann npm cache clean --force , dann aus /opt/iobroker heraus iobroker fix und sudo -H -u iobroker npm install iobroker.js-controller gemacht.

                          Die npm Berechtigungsfehler (Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs') bleiben.

                          Thomas BraunT Online
                          Thomas BraunT Online
                          Thomas Braun
                          Most Active
                          schrieb am zuletzt editiert von
                          #77

                          @Nies

                          sudo rm -rf /home/iobroker/.npm/_logs
                          

                          Linux-Werkzeugkasten:
                          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                          NodeJS Fixer Skript:
                          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                          NiesN 1 Antwort Letzte Antwort
                          0
                          • Thomas BraunT Thomas Braun

                            @Nies

                            sudo rm -rf /home/iobroker/.npm/_logs
                            
                            NiesN Offline
                            NiesN Offline
                            Nies
                            schrieb am zuletzt editiert von
                            #78

                            @Thomas-Braun Ja, /home/iobroker/.npm habe ich gelöscht.
                            Warum bringt mir sudo -H -u iobroker npm install iobroker.js-controller trotz nicht existentem /home/iobroker/.npm den Fehler immernoch?

                            pi@rpi4:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
                            npm ERR! code EACCES
                            npm ERR! syscall scandir
                            npm ERR! path /home/iobroker/.npm/_logs
                            npm ERR! errno -13
                            npm ERR!
                            npm ERR! Your cache folder contains root-owned files, due to a bug in
                            npm ERR! previous versions of npm which has since been addressed.
                            npm ERR!
                            npm ERR! To permanently fix this problem, please run:
                            npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                            glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
                              errno: -13,
                              code: 'EACCES',
                              syscall: 'scandir',
                              path: '/home/iobroker/.npm/_logs'
                            }
                            npm ERR! code EACCES
                            npm ERR! syscall open
                            npm ERR! path /home/iobroker/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e
                            npm ERR! errno -13
                            npm ERR!
                            npm ERR! Your cache folder contains root-owned files, due to a bug in
                            npm ERR! previous versions of npm which has since been addressed.
                            npm ERR!
                            npm ERR! To permanently fix this problem, please run:
                            npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                            
                            Thomas BraunT 1 Antwort Letzte Antwort
                            0
                            • NiesN Nies

                              @Thomas-Braun Ja, /home/iobroker/.npm habe ich gelöscht.
                              Warum bringt mir sudo -H -u iobroker npm install iobroker.js-controller trotz nicht existentem /home/iobroker/.npm den Fehler immernoch?

                              pi@rpi4:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
                              npm ERR! code EACCES
                              npm ERR! syscall scandir
                              npm ERR! path /home/iobroker/.npm/_logs
                              npm ERR! errno -13
                              npm ERR!
                              npm ERR! Your cache folder contains root-owned files, due to a bug in
                              npm ERR! previous versions of npm which has since been addressed.
                              npm ERR!
                              npm ERR! To permanently fix this problem, please run:
                              npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                              glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
                                errno: -13,
                                code: 'EACCES',
                                syscall: 'scandir',
                                path: '/home/iobroker/.npm/_logs'
                              }
                              npm ERR! code EACCES
                              npm ERR! syscall open
                              npm ERR! path /home/iobroker/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e
                              npm ERR! errno -13
                              npm ERR!
                              npm ERR! Your cache folder contains root-owned files, due to a bug in
                              npm ERR! previous versions of npm which has since been addressed.
                              npm ERR!
                              npm ERR! To permanently fix this problem, please run:
                              npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                              
                              Thomas BraunT Online
                              Thomas BraunT Online
                              Thomas Braun
                              Most Active
                              schrieb am zuletzt editiert von
                              #79

                              @Nies

                              ls -la /home/iobroker/.npm/
                              

                              Linux-Werkzeugkasten:
                              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                              NodeJS Fixer Skript:
                              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                              1 Antwort Letzte Antwort
                              0
                              • NiesN Nies

                                @Thomas-Braun Ja, ich habe es doch immer gepostet, was ich versucht habe.
                                D.h. vor 2 Std auf deinen Hinweis hin habe ich sudo chown -R 1001:1001 /home/iobroker/.npm und npm cache clean --force gemacht.
                                Zuletzt habe ich auf @apollon77 Hinweis hin sudo rm -R /home/iobroker/.npm , dann npm cache clean --force , dann aus /opt/iobroker heraus iobroker fix und sudo -H -u iobroker npm install iobroker.js-controller gemacht.

                                Die npm Berechtigungsfehler (Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs') bleiben.

                                AlCalzoneA Offline
                                AlCalzoneA Offline
                                AlCalzone
                                Developer
                                schrieb am zuletzt editiert von
                                #80

                                @Thomas-Braun
                                @Nies sagte in js-controller 3.1 jetzt im STABLE!:

                                npm cache clean --force

                                löscht den Cache des Users pi. Probier mal

                                sudo -H -u iobroker npm cache clean --force
                                

                                Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                Thomas BraunT 1 Antwort Letzte Antwort
                                0
                                • AlCalzoneA AlCalzone

                                  @Thomas-Braun
                                  @Nies sagte in js-controller 3.1 jetzt im STABLE!:

                                  npm cache clean --force

                                  löscht den Cache des Users pi. Probier mal

                                  sudo -H -u iobroker npm cache clean --force
                                  
                                  Thomas BraunT Online
                                  Thomas BraunT Online
                                  Thomas Braun
                                  Most Active
                                  schrieb am zuletzt editiert von
                                  #81

                                  @AlCalzone Arrrgh, natürlich... Da hab ich aber megagepennt.

                                  Linux-Werkzeugkasten:
                                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                  NodeJS Fixer Skript:
                                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                  1 Antwort Letzte Antwort
                                  0
                                  • AlCalzoneA Offline
                                    AlCalzoneA Offline
                                    AlCalzone
                                    Developer
                                    schrieb am zuletzt editiert von AlCalzone
                                    #82

                                    Blöde Idee: Gehört /home/iobroker möglicherweise root?
                                    @Nies

                                    ls -la /home/iobroker
                                    

                                    Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                    NiesN 1 Antwort Letzte Antwort
                                    0
                                    • AlCalzoneA AlCalzone

                                      Blöde Idee: Gehört /home/iobroker möglicherweise root?
                                      @Nies

                                      ls -la /home/iobroker
                                      
                                      NiesN Offline
                                      NiesN Offline
                                      Nies
                                      schrieb am zuletzt editiert von
                                      #83

                                      @AlCalzone @Thomas-Braun Nein, /home/iobroker gehört nicht root.

                                      pi@rpi4:~ $ ls -la /home/iobroker
                                      insgesamt 40
                                      drwx------ 5 pi       pi       4096 Aug 23 22:57 .
                                      drwxr-xr-x 4 root     root     4096 Jan 20  2020 ..
                                      -rw-r--r-- 1 iobroker iobroker  220 Apr 18  2019 .bash_logout
                                      -rw-r--r-- 1 iobroker iobroker 3523 Sep 26  2019 .bashrc
                                      drwxr-xr-x 3 iobroker iobroker 4096 Jan 20  2020 .cache
                                      drwx------ 3 iobroker iobroker 4096 Jan 20  2020 .config
                                      -rwx------ 1 iobroker iobroker 5462 Apr  5 14:06 getParrot9333.pl
                                      -rw-r--r-- 1 iobroker iobroker  807 Apr 18  2019 .profile
                                      drwx------ 2 iobroker iobroker 4096 Feb  3  2020 .ssh
                                      

                                      Entschuldigung für doofe Fragen. Ist es relevant, aus welchem Ordner ich npm cache clean ausführe? /home/iobroker oder /opt/iobroker oder root?

                                      aus /home/iobroker:

                                      pi@rpi4:/home/iobroker $ sudo -H -u iobroker npm cache clean --force
                                      Error: EACCES: permission denied, scandir '/home/iobroker'
                                      

                                      aus /opt/iobroker:

                                      pi@rpi4:/opt/iobroker $ sudo -H -u iobroker npm cache clean --force
                                      npm WARN using --force I sure hope you know what you are doing.
                                      npm ERR! code EACCES
                                      npm ERR! syscall scandir
                                      npm ERR! path /home/iobroker/.npm/_logs
                                      npm ERR! errno -13
                                      npm ERR!
                                      npm ERR! Your cache folder contains root-owned files, due to a bug in
                                      npm ERR! previous versions of npm which has since been addressed.
                                      npm ERR!
                                      npm ERR! To permanently fix this problem, please run:
                                      npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                                      glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
                                        errno: -13,
                                        code: 'EACCES',
                                        syscall: 'scandir',
                                        path: '/home/iobroker/.npm/_logs'
                                      }
                                      npm ERR! code EACCES
                                      npm ERR! syscall lstat
                                      npm ERR! path /home/iobroker/.npm/_cacache
                                      npm ERR! errno -13
                                      npm ERR!
                                      npm ERR! Your cache folder contains root-owned files, due to a bug in
                                      npm ERR! previous versions of npm which has since been addressed.
                                      npm ERR!
                                      npm ERR! To permanently fix this problem, please run:
                                      npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                                      

                                      aus root:

                                      pi@rpi4:/ $ sudo -H -u iobroker npm cache clean --force
                                      npm WARN using --force I sure hope you know what you are doing.
                                      npm ERR! code EACCES
                                      npm ERR! syscall scandir
                                      npm ERR! path /home/iobroker/.npm/_logs
                                      npm ERR! errno -13
                                      npm ERR!
                                      npm ERR! Your cache folder contains root-owned files, due to a bug in
                                      npm ERR! previous versions of npm which has since been addressed.
                                      npm ERR!
                                      npm ERR! To permanently fix this problem, please run:
                                      npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                                      glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
                                        errno: -13,
                                        code: 'EACCES',
                                        syscall: 'scandir',
                                        path: '/home/iobroker/.npm/_logs'
                                      }
                                      npm ERR! code EACCES
                                      npm ERR! syscall lstat
                                      npm ERR! path /home/iobroker/.npm/_cacache
                                      npm ERR! errno -13
                                      npm ERR!
                                      npm ERR! Your cache folder contains root-owned files, due to a bug in
                                      npm ERR! previous versions of npm which has since been addressed.
                                      npm ERR!
                                      npm ERR! To permanently fix this problem, please run:
                                      npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                                      
                                      AlCalzoneA 1 Antwort Letzte Antwort
                                      0
                                      • K Offline
                                        K Offline
                                        Kueppert
                                        schrieb am zuletzt editiert von Kueppert
                                        #84

                                        @Nies sagte in js-controller 3.1 jetzt im STABLE!:

                                        sudo chown -R 1001:1001 "/home/iobroker/.npm"

                                        kurze Frage/Hinweis: im Fehlertext steht das Verzeichnis in " ":

                                        sudo chown -R 1001:1001 "/home/iobroker/.npm"
                                        

                                        Wenn ich das richtig gelesen habe, wurde der Befehl aber ohne " " abgesetzt (bin auch kein Linux-Profi, ist mir nur beim Lesen ins Auge gesprungen?!)
                                        VG Thorsten

                                        UDM Pro, Intel NUC - ioBroker in Proxmox-VM, PiHole+Grafana&Influx+TasmoAdmin in LXCs, Raspberry Pi3 (als CCU), Zigbee-Stick Sonoff, Synology DS918+

                                        NiesN 1 Antwort Letzte Antwort
                                        0
                                        • NiesN Nies

                                          @AlCalzone @Thomas-Braun Nein, /home/iobroker gehört nicht root.

                                          pi@rpi4:~ $ ls -la /home/iobroker
                                          insgesamt 40
                                          drwx------ 5 pi       pi       4096 Aug 23 22:57 .
                                          drwxr-xr-x 4 root     root     4096 Jan 20  2020 ..
                                          -rw-r--r-- 1 iobroker iobroker  220 Apr 18  2019 .bash_logout
                                          -rw-r--r-- 1 iobroker iobroker 3523 Sep 26  2019 .bashrc
                                          drwxr-xr-x 3 iobroker iobroker 4096 Jan 20  2020 .cache
                                          drwx------ 3 iobroker iobroker 4096 Jan 20  2020 .config
                                          -rwx------ 1 iobroker iobroker 5462 Apr  5 14:06 getParrot9333.pl
                                          -rw-r--r-- 1 iobroker iobroker  807 Apr 18  2019 .profile
                                          drwx------ 2 iobroker iobroker 4096 Feb  3  2020 .ssh
                                          

                                          Entschuldigung für doofe Fragen. Ist es relevant, aus welchem Ordner ich npm cache clean ausführe? /home/iobroker oder /opt/iobroker oder root?

                                          aus /home/iobroker:

                                          pi@rpi4:/home/iobroker $ sudo -H -u iobroker npm cache clean --force
                                          Error: EACCES: permission denied, scandir '/home/iobroker'
                                          

                                          aus /opt/iobroker:

                                          pi@rpi4:/opt/iobroker $ sudo -H -u iobroker npm cache clean --force
                                          npm WARN using --force I sure hope you know what you are doing.
                                          npm ERR! code EACCES
                                          npm ERR! syscall scandir
                                          npm ERR! path /home/iobroker/.npm/_logs
                                          npm ERR! errno -13
                                          npm ERR!
                                          npm ERR! Your cache folder contains root-owned files, due to a bug in
                                          npm ERR! previous versions of npm which has since been addressed.
                                          npm ERR!
                                          npm ERR! To permanently fix this problem, please run:
                                          npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                                          glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
                                            errno: -13,
                                            code: 'EACCES',
                                            syscall: 'scandir',
                                            path: '/home/iobroker/.npm/_logs'
                                          }
                                          npm ERR! code EACCES
                                          npm ERR! syscall lstat
                                          npm ERR! path /home/iobroker/.npm/_cacache
                                          npm ERR! errno -13
                                          npm ERR!
                                          npm ERR! Your cache folder contains root-owned files, due to a bug in
                                          npm ERR! previous versions of npm which has since been addressed.
                                          npm ERR!
                                          npm ERR! To permanently fix this problem, please run:
                                          npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                                          

                                          aus root:

                                          pi@rpi4:/ $ sudo -H -u iobroker npm cache clean --force
                                          npm WARN using --force I sure hope you know what you are doing.
                                          npm ERR! code EACCES
                                          npm ERR! syscall scandir
                                          npm ERR! path /home/iobroker/.npm/_logs
                                          npm ERR! errno -13
                                          npm ERR!
                                          npm ERR! Your cache folder contains root-owned files, due to a bug in
                                          npm ERR! previous versions of npm which has since been addressed.
                                          npm ERR!
                                          npm ERR! To permanently fix this problem, please run:
                                          npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                                          glob error [Error: EACCES: permission denied, scandir '/home/iobroker/.npm/_logs'] {
                                            errno: -13,
                                            code: 'EACCES',
                                            syscall: 'scandir',
                                            path: '/home/iobroker/.npm/_logs'
                                          }
                                          npm ERR! code EACCES
                                          npm ERR! syscall lstat
                                          npm ERR! path /home/iobroker/.npm/_cacache
                                          npm ERR! errno -13
                                          npm ERR!
                                          npm ERR! Your cache folder contains root-owned files, due to a bug in
                                          npm ERR! previous versions of npm which has since been addressed.
                                          npm ERR!
                                          npm ERR! To permanently fix this problem, please run:
                                          npm ERR!   sudo chown -R 1001:1001 "/home/iobroker/.npm"
                                          
                                          AlCalzoneA Offline
                                          AlCalzoneA Offline
                                          AlCalzone
                                          Developer
                                          schrieb am zuletzt editiert von
                                          #85

                                          An sich ist es egal, von wo du cache clean ausführst, es muss nur der richtige User sein.
                                          /home/iobroker/.npm existiert auch nicht mehr, d.h. löschen kannst du dir sparen.

                                          @Nies sagte in js-controller 3.1 jetzt im STABLE!:

                                          Nein, /home/iobroker gehört nicht root.

                                          pi@rpi4:~ $ ls -la /home/iobroker
                                          drwx------ 5 pi pi 4096 Aug 23 22:57 .

                                          Aber auch nicht iobroker. Bei mir funktioniert es mit Owner iobroker und 755 (hoffe @Thomas-Braun bringt mich für diesen Vorschlag nicht um) - probiers mal so:

                                          sudo chown iobroker:iobroker /home/iobroker
                                          sudo chmod 755 /home/iobroker
                                          

                                          Danach sollte npm seine Verzeichnisse wieder selbst herstellen.

                                          Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                          NiesN 1 Antwort Letzte Antwort
                                          1
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          328

                                          Online

                                          32.5k

                                          Benutzer

                                          81.7k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe