Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Wichtige Hinweise bei neueren npm-Versionen und sudo

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    Wichtige Hinweise bei neueren npm-Versionen und sudo

    This topic has been deleted. Only users with topic management privileges can see it.
    • apollon77
      apollon77 last edited by

      Nimm doch den Artikel der direkt unter dem hier festgepinnt ist 😉

      viewtopic.php?t=19111

      Gesendet vom Handy …

      1 Reply Last reply Reply Quote 0
      • R
        Rene1231 last edited by

        @apollon77:

        Nimm doch den Artikel der direkt unter dem hier festgepinnt ist 😉

        viewtopic.php?t=19111

        Gesendet vom Handy … `

        Danke,

        Wenn Da als root ausführen steht, reicht dann sudo….

        MfG Rene

        1 Reply Last reply Reply Quote 0
        • AlCalzone
          AlCalzone Developer last edited by

          Ich sehe in der dort verlinkten Anleitung keine Aufforderung etwas als Root auszuführen:

          ==> http://www.iobroker.net/docu/?page_id=8 … sanleitung

          1 Reply Last reply Reply Quote 0
          • R
            Rene1231 last edited by

            @AlCalzone:

            Ich sehe in der dort verlinkten Anleitung keine Aufforderung etwas als Root auszuführen:

            ==> http://www.iobroker.net/docu/?page_id=8 … sanleitung `

            Vielen Dank

            Das hat nun damit funktionier

            Mfg

            1 Reply Last reply Reply Quote 0
            • K
              Kueppert last edited by

              Ach herje,

              jetzt hat es mich doch tatsächlich auch erwischt. Habe diese Fehlermeldungen````
              Error: EACCES: permission denied, scandir '/root/.npm/_logs'

              
              Ich nutze mein ioBroker-System auf meinem Nuc jetzt schon...puh...über ein Jahr, also nach alter Methode installiert. Ich bin immer als root unterwegs. Diese o. g. Fehlermeldung habe ich noch nicht "so lang"...bedeutet vielleicht paar Wochen (kann es leider nicht genau sagen).
              
              Auf meinem NUC unter Proxmox läuft in einer VM Debian, dort hab ich dann damals fein ioBroker installiert.
              
              Auf einem PI3 (ist im Multihost der Slave) läuft nur der ZWave-Adapter. Das Multihost-System läuft seit ich auf dem NUC unterwegs bin auch artig mit. Da hab ich nichts dran rumgebastelt.
              
              Paar Eckdaten vom HOST (NUC):
              
              js-controller: 1.4.2 (gemäß HOST-Reiter in der ioBroker-Admin-Oberfläche)
              

              root@iobrokerNUC:/opt/iobroker# npm -v
              6.5.0
              root@iobrokerNUC:/opt/iobroker# nodejs -v
              v6.14.2
              root@iobrokerNUC:/opt/iobroker# node -v
              v6.14.2

              
              was habe ich schon gemacht (auffm HOST):
              
              Update erfolgreich von npm 6.1.0 auf 6.5.0, hat aber nix geändert
              
              was hab ich schon eingetippert (auch auf dem HOST):
              

              sudo chown -R $(whoami) ~/.npm

              root@iobrokerNUC:/home/thorsten# ps aux | grep js-controller
              root 7615 0.0 0.0 12784 964 pts/0 S+ 17:10 0:00 grep js-controller
              root 14667 4.5 7.5 1330924 155520 ? Ssl Jan08 57:40 iobroker.js-controller

              
              gerade das log vom Update HM-RPC über die ioBroker-Admin-Oberfläche:
              
              >! ````
              $ ./iobroker upgrade hm-rpc
              Update hm-rpc from @1.8.2 to @1.9.0
              NPM version: 6.5.0
              npm install iobroker.hm-rpc@1.9.0 --production --save --prefix "/opt/iobroker" (System call)
              npm
               ERR! path /root/.npm/_logsnpm ERR! code EACCES
              npm ERR! errno -13
              npm ERR! syscall scandir
              npm ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs'
              npm ERR!     at Error (native)
              npm ERR!  { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
              npm ERR!     at Error (native)
              npm ERR!   stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'\n    at Error (native)',
              npm ERR!   errno: -13,
              npm ERR!   code: 'EACCES',
              npm ERR!   syscall: 'scandir',
              npm ERR!   path: '/root/.npm/_logs' }
              npm ERR! 
              npm ERR! The operation was rejected by your operating system.
              npm ERR! It is likely you do not have the permissions to access this file as the current user
              npm ERR! 
              npm ERR! If you believe this might be a permissions issue, please double-check the
              npm ERR! permissions of the file and its containing directories, or try running
              npm ERR! the command again as root/Administrator (though this is not recommended).
              glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
                  at Error (native)
                stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'\n    at Error (native)',
                errno: -13,
                code: 'EACCES',
                syscall: 'scandir',
                path: '/root/.npm/_logs' }
              >! npm ERR! path /root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74fnpm ERR! code EACCES
              npm ERR! errno -13
              npm ERR! syscall open
              npm ERR! Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'
              npm ERR!     at Error (native)
              npm ERR!  { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'
              npm ERR!     at Error (native)
              npm ERR!   cause: 
              npm ERR!    { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'
              npm ERR!        at Error (native)
              npm ERR!      errno: -13,
              npm ERR!      code: 'EACCES',
              npm ERR!      syscall: 'open',
              npm ERR!      path: '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f' },
              npm ERR!   isOperational: true,
              npm ERR!   stack: 'Error: EACCES: permission denied, open \'/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f\'\n    at Error (native)',
              npm ERR!   errno: -13,
              npm ERR!   code: 'EACCES',
              npm ERR!   syscall: 'open',
              npm ERR!   path: '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f' }
              npm ERR! 
              npm ERR! The operation was rejected by your operating system.
              npm ERR! It is likely you do not have the permissions to access this file as the current user
              npm ERR! 
              npm ERR! If you believe this might be a permissions issue, please double-check the
              npm ERR! permissions of the file and its containing directories, or try running
              npm ERR! the command again as root/Administrator (though this is not recommended).
              >! npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
              npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
              >! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-1 (node_modules/@abandonware/bluetooth-hci-socket):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-1 preinstall: `npm install node-pre-gyp`
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 243
              >! npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.hm-rpc"
              npm 
              WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
              npm notice created a lockfile as package-lock.json. You should commit this file.
              got /opt/iobroker/node_modules/iobroker.hm-rpc/admin
              Update "system.adapter.hm-rpc.0"
              Update "system.adapter.hm-rpc.1"
              upload [200] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/index_m.html index_m.html text/html
              upload [150] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/75_hm-pb-2-wm55_thumb.png icons/75_hm-pb-2-wm55_thumb.png image/png
              upload [100] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/27_hmw-lc-bl1-dr_thumb.png icons/27_hmw-lc-bl1-dr_thumb.png image/png
              upload [90] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/188_hmip-etrv-c_thumb.png icons/188_hmip-etrv-c_thumb.png image/png
              upload [80] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/179_hmip-swdm-b2_thumb.png icons/179_hmip-swdm-b2_thumb.png image/png
              upload [70] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/169_hmip-swo-pr_thumb.png icons/169_hmip-swo-pr_thumb.png image/png
              upload [60] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/150_hm-lc-dw-wm_thumb.png icons/150_hm-lc-dw-wm_thumb.png image/png
              upload [50] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/140_alpha-ip-rgb_thumb.png icons/140_alpha-ip-rgb_thumb.png image/png
              upload [40] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/132_hmip-smo_thumb.png icons/132_hmip-smo_thumb.png image/png
              upload [30] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/121_hmip-wth_thumb.png icons/121_hmip-wth_thumb.png image/png
              upload [20] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/113_hmip-psm_thumb.png icons/113_hmip-psm_thumb.png image/png
              upload [19] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/113_hmip-psm-uk_thumb.png icons/113_hmip-psm-uk_thumb.png image/png
              upload [18] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/113_hmip-psm-pe_thumb.png icons/113_hmip-psm-pe_thumb.png image/png
              upload [17] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/113_hmip-psm-it_thumb.png icons/113_hmip-psm-it_thumb.png image/png
              upload [16] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/113_hmip-psm-ch_thumb.png icons/113_hmip-psm-ch_thumb.png image/png
              upload [15] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/112_hmip-wrc2_thumb.png icons/112_hmip-wrc2_thumb.png image/png
              upload [14] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/111_hm-lc-rgbw-wm_thumb.png icons/111_hm-lc-rgbw-wm_thumb.png image/png
              upload [13] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/110_hm-es-pmsw1-dr_thump.png icons/110_hm-es-pmsw1-dr_thump.png image/png
              upload [12] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/109_hm-lc-sw1-pl-ct_thump.png icons/109_hm-lc-sw1-pl-ct_thump.png image/png
              upload [11] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/108_hm-rc-dis-h-x-eu_thump.png icons/108_hm-rc-dis-h-x-eu_thump.png image/png
              upload [10] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/107_hm-es-pmsw1-pl-R5_thumb.png icons/107_hm-es-pmsw1-pl-R5_thumb.png image/png
              upload [9] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/107_hm-es-pmsw1-pl-R4_thumb.png icons/107_hm-es-pmsw1-pl-R4_thumb.png image/png
              upload [8] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/107_hm-es-pmsw1-pl-R3_thumb.png icons/107_hm-es-pmsw1-pl-R3_thumb.png image/png
              upload [7] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/107_hm-es-pmsw1-pl-R2_thumb.png icons/107_hm-es-pmsw1-pl-R2_thumb.png image/png
              upload [6] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/105_hm-sec-sd-2-team_thumb.png icons/105_hm-sec-sd-2-team_thumb.png image/png
              upload [5] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/104_hm-sec-sd-2_thumb.png icons/104_hm-sec-sd-2_thumb.png image/png
              upload [4] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/103_hm-sen-mdir-wm55_thumb.png icons/103_hm-sen-mdir-wm55_thumb.png image/png
              upload [3] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/102_hm-es-tx-wm_thumb.png icons/102_hm-es-tx-wm_thumb.png image/png
              upload [2] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/101_hm-sen-db-pcb_thumb.png icons/101_hm-sen-db-pcb_thumb.png image/png
              upload [1] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/icons/100_hm-rc-8_thumb.png icons/100_hm-rc-8_thumb.png image/png
              upload [0] hm-rpc.admin /opt/iobroker/node_modules/iobroker.hm-rpc/admin/homematic.png homematic.png image/png
              Adapter "hm-rpc" updated
              process exited with code 0
              

              Da das mein Produktiv-System ist und ich kein Backup einspielen möchte wegen dem NPM-Problemchen, wende ich mich hier mal an die Profis. Hab schon mal dran gedacht, dem Ordner root die permisison -777 zu geben, es aber eben doch verworfen.

              Den Befehl npm cache clear funktioniert (ohne force) seit v5 nicht mehr hab ich schon erfahren. Will aber auch kein -foce ausprobieren oder manuell über putty den cache-Ordner löschen, ohne zu wissen, ob das Sinn macht 🙂

              Vielleicht hat hier jemand eine Idee? Danke euch schon mal - und wenn jmd. noch Input von mir benötigt (ich hoffe, ich hab alle benötigten Daten hier gepostet) liefere ich natürlich nach…

              Danke euch und Grüße, Thorsten

              1 Reply Last reply Reply Quote 0
              • AlCalzone
                AlCalzone Developer last edited by

                Laut deiner Ausgabe läuft ioBroker auch als root. Wie es dann zu dem Zugriffsproblem kommt ist mir schleierhaft.

                Schau mal was folgende Befehle ausgeben:

                ls -la /opt/iobroker
                

                und

                ls -la /root/.npm
                
                1 Reply Last reply Reply Quote 0
                • K
                  Kaldi last edited by

                  @AlCalzone:

                  Laut deiner Ausgabe läuft ioBroker auch als root. Wie es dann zu dem Zugriffsproblem kommt ist mir schleierhaft.

                  Schau mal was folgende Befehle ausgeben:

                  ls -la /opt/iobroker
                  

                  und

                  ls -la /root/.npm
                  ```` `  
                  

                  Unabhängig, was der Fragesteller hierauf antwortet, was sollte denn dort rauskommen? Habe nämlich ähnliches Problem. Als root mit der neuen Methode installiert, ist auch gelaufen, bis ich einen Adapter (Smartmeter) auf dem Slave über den Master deinstalliert habe. Im Folgenden meine Ausgaben (sehen auf Master und Slave gleich aus):

                  root@ioBroker-Master:/# ls -la /opt/iobroker
                  total 252
                  drwxr-xr-x    8 iobroker iobroker   4096 Jan  9 23:12 .
                  drwxr-xr-x.   4     1023     1023   4096 Jan  9 17:30 ..
                  drwxr-xr-x    2 iobroker root       4096 Jan  9 17:57 backups
                  drwxr-xr-x    5 iobroker iobroker   4096 Jan  9 17:30 install
                  -rw-r--r--    1 iobroker iobroker     77 Jan  9 17:30 INSTALLER_INFO.txt
                  -rwxr-xr-x    1 iobroker iobroker     67 Jan  9 17:35 iob
                  -rwxr-xr-x    1 iobroker iobroker     67 Jan  9 17:35 iobroker
                  drwxr-xr-x    4 iobroker iobroker   4096 Jan  9 17:35 iobroker-data
                  -rw-r--r--    1 iobroker iobroker     92 Jan  9 17:32 killall.sh
                  drwxr-xr-x    2 iobroker iobroker   4096 Jan  9 17:30 lib
                  -rw-r--r--    1 iobroker iobroker   1137 Jan  9 17:30 LICENSE
                  drwxr-xr-x    2 iobroker iobroker   4096 Jan 10 07:40 log
                  drwxr-xr-x  383 iobroker iobroker  20480 Jan  9 23:42 node_modules
                  -rw-r--r--    1 iobroker iobroker     19 Jan  9 17:31 .npmrc
                  -rw-r--r--    1 iobroker iobroker    602 Jan  9 23:12 package.json
                  -rw-r--r--    1 iobroker iobroker 164520 Jan  9 17:35 package-lock.json
                  -rw-r--r--    1 iobroker iobroker   6101 Jan  9 17:30 README.md
                  -rw-r--r--    1 iobroker iobroker    709 Jan  9 17:32 reinstall.sh
                  
                  
                  root@ioBroker-Master:/# ls -la /root/.npm
                  total 28
                  drwxr-xr-x  6 root 1023 4096 Jan  9 23:40 .
                  drwx------. 8 1023 1023 4096 Jan  9 12:07 ..
                  -rw-r--r--  1 root 1023  172 Jan  9 23:42 anonymous-cli-metrics.json
                  drwxr-xr-x  5 root 1023 4096 Jan  8 14:21 _cacache
                  drwxr-xr-x  3 root 1023 4096 Jan  8 14:21 index-v5
                  drwxr-xr-x  2 root root 4096 Jan  9 23:42 _locks
                  drwxr-xr-x  2 root root 4096 Jan 10 00:05 _logs
                  
                  

                  PS: Master & Slave sind identische Installationen und Multihost wurde nach der neuen Methode eingerichtet

                  Vielen Dank.

                  1 Reply Last reply Reply Quote 0
                  • AlCalzone
                    AlCalzone Developer last edited by

                    @Kaldi:

                    Unabhängig, was der Fragesteller hierauf antwortet, was sollte denn dort rauskommen? `
                    Keine Ahnung - ich wollte mir mal einen Überblick verschaffen. Nach deiner Ausgabe gibt es den User iobroker - wird ioBroker auch als dieser User ausgeführt?

                    ps aux | grep js-controller
                    

                    Hilft das möglicherweise?

                    sudo chown -R iobroker:iobroker /home/iobroker/.npm
                    
                    1 Reply Last reply Reply Quote 0
                    • K
                      Kaldi last edited by

                      @AlCalzone:

                      Keine Ahnung - ich wollte mir mal einen Überblick verschaffen. Nach deiner Ausgabe gibt es den User iobroker - wird ioBroker auch als dieser User ausgeführt?

                      ps aux | grep js-controller
                      ```` `  
                      

                      Vielen Dank für die schnelle Rückmeldung. Hier meine Ausgaben:

                      root@ioBroker-Master:/# ps aux | grep js-controller
                      iobroker 10352 10.9 18.6 1473764 351696 ?      Ssl  09:37  19:18 iobroker.js-controller
                      root     11971  0.0  0.0   4704   588 pts/0    S+   12:33   0:00 grep --color=auto js-controller
                      
                      

                      Rechtevergabe mit sudo bringt Fehlermeldung:

                      root@ioBroker-Master:/# sudo chown -R iobroker:iobroker /home/iobroker/.npm
                      sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
                      sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
                      sudo: fatal error, unable to load plugins
                      
                      

                      ohne sudo:

                      root@ioBroker-Master:/# chown -R iobroker:iobroker /home/iobroker/.npm
                      chown: cannot access '/home/iobroker/.npm': No such file or directory
                      
                      

                      An der Stelle mal ein Dankeschön für die viele Arbeit und Energie die ihr hier in das Projekt steckt!

                      1 Reply Last reply Reply Quote 0
                      • G
                        Georgius last edited by

                        Und das Verzeichnis/File existiert wirklich?

                        1 Reply Last reply Reply Quote 0
                        • K
                          Kaldi last edited by

                          @Georgius:

                          Und das Verzeichnis/File existiert wirklich? `

                          hmmm… so wie es aussieht, nicht (weder auf dem Master, noch auf dem Slave). Was steht denn da drin, bzw. was gehört da rein (.npm)

                          root@ioBroker-Master:/home/iobroker# ls -la
                          total 36
                          drwxr-xr-x  5 1023 1023 4096 Jan  8 14:26 .
                          drwxr-xr-x. 4 1023 1023 4096 Jan  8 14:26 ..
                          -rw-r--r--  1 1023 1023  220 Apr  4  2018 .bash_logout
                          -rw-r--r--  1 1023 1023 3771 Apr  4  2018 .bashrc
                          drwxr-xr-x  5 1023 1023 4096 Dez 28 07:41 .config
                          drwxrwxr-x  2 1023 1023 4096 Dez 28 07:41 Desktop
                          drwxr-xr-x  3 1023 1023 4096 Dez 28 07:41 .local
                          -rw-r--r--  1 1023 1023  807 Apr  4  2018 .profile
                          -rw-r--r--  1 1023 1023   20 Dez 28 07:39 .xscreensaver
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • AlCalzone
                            AlCalzone Developer last edited by

                            Wenn npm als iobroker-User ausgeführt wird, sollten da eigentlich der Cache und so erstellt werden. Bei dir liegt er aktuell unter /root/.npm, was auch vollkommen normal ist, wenn als root installiert wird. iobroker wird jedenfalls unter dem korrekten User ausgeführt - jetzt bin ich etwas ratlos, warum dennoch versucht wird, auf /root/.npm zuzugreifen.

                            Edit: Anscheinend greift npm auch auf ~/.config zu. Probiere bitte mal folgendes (ohne sudo als root):

                            sudo chown -R iobroker:iobroker /home/iobroker/.config
                            

                            Geht danach die Installation ohne Fehler?

                            1 Reply Last reply Reply Quote 0
                            • K
                              Kaldi last edited by

                              @AlCalzone:

                              Edit: Anscheinend greift npm auch auf ~/.config zu. Probiere bitte mal folgendes (ohne sudo als root):

                              sudo chown -R iobroker:iobroker /home/iobroker/.config
                              

                              Geht danach die Installation ohne Fehler? `

                              leider nein. Habe auf Master und Slave die Berechtigungen für iobroker gesetzt, beide neu gebootet, gleiches Szenario. Beim Installieren eines Adapters kommt der Fehler wieder. Kurioserweise wird versucht, den Adapter auf beiden Hosts zu installieren, sowohl Master, als auch slave. Ist aber nur beim Smartmeter - den hatte ich vor den Fehlermeldungen auch auf beiden installiert und wieder deinstalliert.

                              $ ./iobroker add smartmeter  --host ioBroker-Strom
                              NPM version: 6.4.1
                              npm install iobroker.smartmeter --production --save --prefix "/opt/iobroker" (System call)
                              Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker/.npm'
                              npm
                               ERR! cb() never called!
                              npm ERR!
                               This is an error with npm itself. Please report this error at:npm ERR!     <https: npm.community="">
                              
                              host.ioBroker-Master install adapter smartmeter
                              NPM version: 6.4.1
                              npm install iobroker.smartmeter --production --save --prefix "/opt/iobroker" (System call)
                              Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker/.npm'
                              npm
                               ERR! cb() never called!
                              npm ERR!
                               This is an error with npm itself. Please report this error at:npm ERR!     <https: npm.community="">
                              
                              host.ioBroker-Master install adapter smartmeter
                              NPM version: 6.4.1
                              npm install iobroker.smartmeter --production --save --prefix "/opt/iobroker" (System call)
                              Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker/.npm'
                              npm
                               ERR! cb() never called!
                              npm ERR!
                               This is an error with npm itself. Please report this error at:npm ERR!     <https: npm.community="">
                              
                              host.ioBroker-Master install adapter smartmeter
                              ERROR: host.ioBroker-Master Cannot install smartmeter
                              ERROR: process exited with code 13</https:></https:></https:>
                              
                              1 Reply Last reply Reply Quote 0
                              • AlCalzone
                                AlCalzone Developer last edited by

                                Wir kommen der Sache näher!

                                sudo chown -R iobroker:iobroker /home/iobroker
                                
                                1 Reply Last reply Reply Quote 0
                                • K
                                  Kueppert last edited by

                                  @AlCalzone:

                                  Laut deiner Ausgabe läuft ioBroker auch als root. Wie es dann zu dem Zugriffsproblem kommt ist mir schleierhaft.

                                  Schau mal was folgende Befehle ausgeben:

                                  ls -la /opt/iobroker
                                  

                                  und

                                  ls -la /root/.npm
                                  ```` `  
                                  

                                  Hi AlCalzone,

                                  habe dir jetzt den kompletten Verlauf meiner Anmeldung und der beiden Befehle angehangen.

                                  Wenn ich mich anmelde, dann als User thorsten und PW, dann sudo su und nochmal mein PW, damit ich als root weiterarbeiten kann

                                  Ich denke, das ist wichtig an der Stelle?! Die direkte Anmeldung als root ist nicht möglich (hab ich am Anfang in der Konfig nicht hinterlegt, sollte wohl unsicher sein?)

                                  führe ich ohne den Wechsel auf den root-User den Befehl````
                                  ps | aux grep js-controller

                                  
                                  >! thorsten 3940 0.0 0.0 12784 1020 pts/0 S+ 17:53 0:00 grep js-controller
                                  >! root 14667 4.3 8.4 1345676 173188 ? Ssl Jan08 120:57 iobroker.js-controller
                                  >! thorsten@iobrokerNUC:~$ 
                                  
                                  Und hier die Ausgabe putty für deine angefragten beiden Befehle:
                                  
                                  >! login as: thorsten
                                  >! thorsten@192.168.178.69's password:
                                  >! Linux iobrokerNUC 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64
                                  >! The programs included with the Debian GNU/Linux system are free software;
                                  >! the exact distribution terms for each program are described in the
                                  >! individual files in /usr/share/doc/*/copyright.
                                  >! Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                                  >! permitted by applicable law.
                                  >! Last login: Wed Jan 9 16:57:26 2019 from 192.168.178.20
                                  >! thorsten@iobrokerNUC:~$ sudo su
                                  >! [sudo] Passwort für thorsten:
                                  >! root@iobrokerNUC:/home/thorsten# ls -la /opt/iobroker
                                  >! insgesamt 352
                                  >! drwxrwxrwx 7 root root 4096 Jan 9 17:18 .
                                  >! drwxr-xr-x 3 root root 4096 Sep 1 01:30 ..
                                  >! drwxrwxrwx 2 1024 users 0 Jan 10 03:05 backups
                                  >! drwxrwxrwx 2 root root 4096 Jul 3 2018 cache
                                  >! -rwxrwxrwx 1 root root 297 Jun 2 2018 install.sh
                                  >! -rwxrwxrwx 1 root root 67 Jun 2 2018 iobroker
                                  >! drwxrwxrwx 7 root root 4096 Aug 19 11:43 iobroker-data
                                  >! -rwxrwxrwx 1 root root 92 Jun 2 2018 killall.sh
                                  >! drwxrwxrwx 2 root root 4096 Jan 10 01:03 log
                                  >! drwxrwxrwx 872 root root 36864 Jan 9 17:18 node_modules
                                  >! -rwxrwxrwx 1 root root 19 Jun 2 2018 .npmrc
                                  >! -rwxrwxrwx 1 root root 2130 Jan 9 17:18 package.json
                                  >! -rwxrwxrwx 1 root root 273967 Jun 2 2018 package-lock.json
                                  >! -rwxrwxrwx 1 root root 709 Jun 2 2018 reinstall.sh
                                  >! root@iobrokerNUC:/home/thorsten# ls -la /root/.npm
                                  >! insgesamt 1240
                                  >! drwxr-xr-x 305 root thorsten 12288 Jul 28 20:27 .
                                  >! drwx–---- 9 root root 4096 Dez 25 13:26 ..
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 accepts
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 acme
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 acme-v2
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 after
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 ajv
                                  >! -rw-r--r-- 1 root root 174 Jan 9 17:19 anonymous-cli-metrics.json
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 ansi-regex
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 any-promise
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 arraybuffer.slice
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 array-flatten
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 asn1
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 asn1js
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 assert-plus
                                  >! drwxr-xr-x 5 root thorsten 4096 Jun 2 2018 async
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 asynckit
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 aws4
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 aws-sign2
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 backo2
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 balanced-match
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 base64-arraybuffer
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 base64id
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 bcrypt-pbkdf
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 better-assert
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 bindings
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 blob
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 bluebird
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 body-parser
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 brace-expansion
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 buffer-v6-polyfill
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 builtin-modules
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 busboy
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 bytes
                                  >! drwxr-xr-x 5 root thorsten 4096 Jan 8 20:02 _cacache
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 callsite
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 camelcase
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 caseless
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 certpem
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 chownr
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 cliui
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 co
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 code-point-at
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 colors
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 combined-stream
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 commander
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 component-bind
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 component-emitter
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 component-inherit
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 concat-map
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 connect-flash
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 content-disposition
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 content-type
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 cookie
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 cookie-parser
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 cookie-signature
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 core-js
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 core-util-is
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 crc
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 cron-parser
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 cycle
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 daemonize2
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 dashdash
                                  >! drwxr-xr-x 6 root thorsten 4096 Jun 2 2018 debug
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 decamelize
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 deep-equal
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 define-properties
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 delayed-stream
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 depd
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 destroy
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 dgram
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 dicer
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 dns-packet
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 double-ended-queue
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 ecc-jsbn
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 ee-first
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 encodeurl
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 engine.io
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 engine.io-client
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 engine.io-parser
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 error-ex
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 es6-promise
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 escape-html
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 etag
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 express
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 express-fileupload
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 express-session
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 extend
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 extsprintf
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 eyes
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 fast-deep-equal
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 fast-json-stable-stringify
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 finalhandler
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 find-up
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 foreach
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 forever-agent
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 form-data
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 forwarded
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 fresh
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 fs-extra
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 fs-minipass
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 fs.realpath
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 fs-symlink
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 function-bind
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 get-caller-file
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 getpass
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 glob
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 glossy
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 graceful-fs
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 greenlock
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 har-schema
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 har-validator
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 has-binary
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 has-cors
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 has-symbols
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 hosted-git-info
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 http-errors
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 http-signature
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 i
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 iconv-lite
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 immediate
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 indexof
                                  >! drwxr-xr-x 3 root root 4096 Jun 2 2018 index-v5
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 inflight
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 inherits
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 invert-kv
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 iobroker
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 iobroker.admin
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 iobroker.discovery
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 iobroker.js-controller
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 ip
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 ipaddr.js
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 is
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 isarray
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 is-arrayish
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 is-builtin-module
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 is-fullwidth-code-point
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 is-nan
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 isstream
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 is-typedarray
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 is-utf8
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 jsbn
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 json3
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 jsonfile
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 json-schema
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 json-schema-traverse
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 json-stringify-safe
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 jsprim
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 jszip
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 lcid
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 le-acme-core
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 le-challenge-fs
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 le-sni-auto
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 le-store-certbot
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 lie
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 load-json-file
                                  >! drwxr-xr-x 2 thorsten thorsten 4096 Jan 9 17:19 _locks
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 lodash
                                  >! drwxrwxrwx 2 root root 4096 Jan 8 20:01 _logs
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 long-timeout
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 mdns-discovery
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 media-typer
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 merge-descriptors
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 methods
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 mime
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 mime-db
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 mime-types
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 minimatch
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 minimist
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 minipass
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 minizlib
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 mkdirp
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 mkdirp-then
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 moment
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 moment-timezone
                                  >! drwxr-xr-x 5 root thorsten 4096 Jun 2 2018 ms
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 mute-stream
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 mz
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 nan
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 ncp
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 negotiator
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 netmask
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 node.extend
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 node-forge
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 node-schedule
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 node-ssdp
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 normalize-package-data
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 npm
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 number-is-nan
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 oauth-sign
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 object-assign
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 object.assign
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 object-component
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 object-keys
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 once
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 on-finished
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 on-headers
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 options
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 os-locale
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 pako
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 parsejson
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 parse-json
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 parseqs
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 parseuri
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 parseurl
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 passport
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 passport-local
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 passport.socketio
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 passport-strategy
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 path-exists
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 path-is-absolute
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 path-to-regexp
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 path-type
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 pause
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 performance-now
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 pify
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 pinkie
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 pinkie-promise
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 pkginfo
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 pkijs
                                  >! drwxrwxrwx 2 root root 4096 Jul 28 20:27 _prebuilds
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 process-nextick-args
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 prompt
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 proxy-addr
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 punycode
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 pyconf
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 qs
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 random-bytes
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 range-parser
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 raw-body
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 read
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 readable-stream
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 read-pkg
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 read-pkg-up
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 redis
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 redis-commands
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 redis-parser
                                  >! drwxr-xr-x 299 root thorsten 12288 Jun 2 2018 registry.npmjs.org
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 request
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 require-directory
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 require-main-filename
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 revalidator
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 rimraf
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 rsa-compat
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 safe-buffer
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 safer-buffer
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 safe-replace
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 semver
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 send
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 serialport
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 serve-static
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 set-blocking
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 setprototypeof
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 socket.io
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 socket.io-adapter
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 socket.io-client
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 socket.io-parser
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 sorted-array-functions
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 spdx-correct
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 spdx-exceptions
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 spdx-expression-parse
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 spdx-license-ids
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 sshpk
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 stack-trace
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 statuses
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 streamifier
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 streamsearch
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 string_decoder
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 string-width
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 strip-ansi
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 strip-bom
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 tar
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 thenify
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 thenify-all
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 to-array
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 tough-cookie
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 tunnel-agent
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 tweetnacl
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 type-is
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 uid-safe
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 ultron
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 unix-dgram
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 unpipe
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 ursa
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 util-deprecate
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 utile
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 utils-merge
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 uuid
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 validate-npm-package-license
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 vary
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 verror
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 which-module
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 winston
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 winston-daily-rotate-file
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 winston-syslog
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 wrap-ansi
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 wrappy
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 ws
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 wtf-8
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 xmlhttprequest-ssl
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 xtend
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 y18n
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 yallist
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 yargs
                                  >! drwxr-xr-x 4 root thorsten 4096 Jun 2 2018 yargs-parser
                                  >! drwxr-xr-x 3 root thorsten 4096 Jun 2 2018 yeast
                                  >! root@iobrokerNUC:/home/thorsten#
                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    Kaldi last edited by

                                    @AlCalzone:

                                    Wir kommen der Sache näher!

                                    sudo chown -R iobroker:iobroker /home/iobroker
                                    ```` `  
                                    

                                    falsch - wir haben es geschafft!

                                    $ ./iobroker add smartmeter  --host ioBroker-Strom
                                    NPM version: 6.4.1
                                    npm install iobroker.smartmeter --production --save --prefix "/opt/iobroker" (System call)
                                    host.ioBroker-Strom install adapter smartmeter
                                    got /opt/iobroker/node_modules/iobroker.smartmeter/admin
                                    upload [5] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/words.js words.js application/javascript
                                    upload [4] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/tooltip.css tooltip.css text/css
                                    upload [3] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/smartmeter.png smartmeter.png image/png
                                    upload [2] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/smartmeter.jpg smartmeter.jpg image/jpeg
                                    upload [1] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/questionmark.png questionmark.png image/png
                                    upload [0] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/index.html index.html text/html
                                    host.ioBroker-Strom object system.adapter.smartmeter created
                                    host.ioBroker-Strom create instance smartmeter
                                    host.ioBroker-Strom object system.adapter.smartmeter.0.outputCount created
                                    host.ioBroker-Strom object system.adapter.smartmeter.0.inputCount created
                                    host.ioBroker-Strom object system.adapter.smartmeter.0.uptime created
                                    host.ioBroker-Strom object system.adapter.smartmeter.0.memRss created
                                    host.ioBroker-Strom object system.adapter.smartmeter.0.memHeapTotal created
                                    host.ioBroker-Strom object system.adapter.smartmeter.0.memHeapUsed created
                                    host.ioBroker-Strom object system.adapter.smartmeter.0.connected created
                                    host.ioBroker-Strom object system.adapter.smartmeter.0.alive created
                                    host.ioBroker-Strom object system.adapter.smartmeter.0 created
                                    process exited with code 0
                                    

                                    Vielen,vielen Dank! Die Hilfestellungen haben mir geholfen, das System besser zu verstehen.

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      Kueppert last edited by

                                      Jetzt fehlt mir nur noch Hilfe 🙂 war schon versucht mein Backup einzuspielen, aber denke, wenn ich mein Problem mit npm gelöst bekomme, dass das anderen helfen könnte…

                                      Gesendet von meinem HUAWEI RIO-L01 mit Tapatalk

                                      1 Reply Last reply Reply Quote 0
                                      • AlCalzone
                                        AlCalzone Developer last edited by

                                        @Kueppert:

                                        aber denke, wenn ich mein Problem mit npm gelöst bekomme, dass das anderen helfen könnte… `
                                        Definitiv - ich stochere bei dir allerdings noch etwas im Dunkeln. Hilft es möglicherweise, wenn du als root die folgenden Befehle ausführst?

                                        chown -R root:root /root
                                        chown -R thorsten:thorsten /home/thorsten
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          boni127 last edited by

                                          Moin ,

                                          leider doch nicht gelöst.

                                          ich habe die gleichen Probleme:

                                          Über die Konsole bekomme ich:

                                          npm i iobroker.zwave —usafe-perm
                                          npm ERR! code EINVALIDTAGNAME
                                          npm ERR! Invalid tag name "—usafe-perm": Tags may not have any characters that encodeURIComponent encodes.
                                          
                                          npm ERR! A complete log of this run can be found in:
                                          npm ERR!     /home/pi/.npm/_logs/2019-01-11T16_25_56_781Z-debug.log
                                          
                                          

                                          auch mit su

                                          sudo -H less /root/.npm/_logs/2019-01-11T16_26_20_359Z-debug.log
                                          pi@ioBroker-RasPi:~ $ npm i iobroker.zwave —usafe-perm
                                          npm ERR! code EINVALIDTAGNAME
                                          npm ERR! Invalid tag name "—usafe-perm": Tags may not have any characters that encodeURIComponent encodes.
                                          
                                          npm ERR! A complete log of this run can be found in:
                                          npm ERR!     /home/pi/.npm/_logs/2019-01-11T16_31_55_164Z-debug.log
                                          
                                          

                                          Das Logfile schreibt:

                                          0 info it worked if it ends with ok
                                          1 verbose cli [ '/usr/bin/node',
                                          1 verbose cli   '/usr/bin/npm',
                                          1 verbose cli   'i',
                                          1 verbose cli   'iobroker.zwave',
                                          1 verbose cli   '—usafe-perm' ]
                                          2 info using npm@6.4.1
                                          3 info using node@v8.15.0
                                          4 verbose npm-session b54ceb41fee903c9
                                          5 silly install loadCurrentTree
                                          6 silly install readLocalPackageData
                                          7 silly fetchPackageMetaData error for iobroker.zwave@latest install iobroker.zwave —usafe-perm is not a legal HTTP header value
                                          8 timing stage:rollbackFailedOptional Completed in 18ms
                                          9 timing stage:runTopLevelLifecycles Completed in 1717ms
                                          10 verbose stack Error: Invalid tag name "—usafe-perm": Tags may not have any characters that encodeURIComponent encodes.
                                          10 verbose stack     at invalidTagName (/usr/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:87:15)
                                          10 verbose stack     at fromRegistry (/usr/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:290:13)
                                          10 verbose stack     at resolve (/usr/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:77:12)
                                          10 verbose stack     at npa (/usr/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:48:10)
                                          10 verbose stack     at /usr/lib/node_modules/npm/lib/install/deps.js:209:14
                                          10 verbose stack     at /usr/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35
                                          10 verbose stack     at Array.forEach (<anonymous>)
                                          10 verbose stack     at /usr/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11
                                          10 verbose stack     at Array.forEach (<anonymous>)
                                          10 verbose stack     at asyncMap (/usr/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8)
                                          10 verbose stack     at exports.getAllMetadata (/usr/lib/node_modules/npm/lib/install/deps.js:206:3)
                                          10 verbose stack     at Installer.loadArgMetadata (/usr/lib/node_modules/npm/lib/install.js:360:3)
                                          10 verbose stack     at /usr/lib/node_modules/npm/lib/install.js:695:16
                                          10 verbose stack     at BB.join.then (/usr/lib/node_modules/npm/lib/install/read-shrinkwrap.js:34:16)
                                          10 verbose stack     at tryCatcher (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
                                          10 verbose stack     at Promise._settlePromiseFromHandler (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
                                          11 verbose cwd /home/pi
                                          12 verbose Linux 4.14.79-v7+
                                          13 verbose argv "/usr/bin/node" "/usr/bin/npm" "i" "iobroker.zwave" "—usafe-perm"
                                          14 verbose node v8.15.0
                                          15 verbose npm  v6.4.1
                                          16 error code EINVALIDTAGNAME
                                          17 error Invalid tag name "—usafe-perm": Tags may not have any characters that encodeURIComponent encodes.
                                          18 verbose exit [ 1, true ]</anonymous></anonymous> 
                                          

                                          Freue mich über jeden hilfreichen Hinweis

                                          Detlev.

                                          1 Reply Last reply Reply Quote 0
                                          • K
                                            Kueppert last edited by

                                            @AlCalzone:

                                            @Kueppert:

                                            aber denke, wenn ich mein Problem mit npm gelöst bekomme, dass das anderen helfen könnte… `
                                            Definitiv - ich stochere bei dir allerdings noch etwas im Dunkeln. Hilft es möglicherweise, wenn du als root die folgenden Befehle ausführst?

                                            chown -R root:root /root
                                            chown -R thorsten:thorsten /home/thorsten
                                            ```` `  
                                            

                                            Hallo AlCalzone,

                                            habe beide Befehle als root via Putty eigegeben und danach direkt mal nen Update vom PAW ausprobiert. Leider kein Erfolg:

                                            ! $ ./iobroker upgrade paw
                                            ! Update paw from @0.2.6 to @0.2.7
                                            ! NPM version: 6.5.0
                                            ! npm install iobroker.paw@0.2.7 –production --save --prefix "/opt/iobroker" (System call)
                                            ! npm
                                            ! ERR! path /root/.npm/_logsnpm ERR! code EACCES
                                            ! npm ERR! errno -13
                                            ! npm ERR! syscall scandir
                                            ! npm ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs'
                                            ! npm ERR! at Error (native)
                                            ! npm ERR! { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
                                            ! npm ERR! at Error (native)
                                            ! npm ERR! stack: 'Error: EACCES: permission denied, scandir '/root/.npm/_logs'\n at Error (native)',
                                            ! npm ERR! errno: -13,
                                            ! npm ERR! code: 'EACCES',
                                            ! npm ERR! syscall: 'scandir',
                                            ! npm ERR! path: '/root/.npm/_logs' }
                                            ! npm ERR!
                                            ! npm ERR! The operation was rejected by your operating system.
                                            ! npm ERR! It is likely you do not have the permissions to access this file as the current user
                                            ! npm ERR!
                                            ! npm ERR! If you believe this might be a permissions issue, please double-check the
                                            ! npm ERR! permissions of the file and its containing directories, or try running
                                            ! npm ERR! the command again as root/Administrator (though this is not recommended).
                                            ! glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs' at Error (native)
                                            ! stack: 'Error: EACCES: permission denied, scandir '/root/.npm/_logs'\n at Error (native)',
                                            ! errno: -13,
                                            ! code: 'EACCES',
                                            ! syscall: 'scandir',
                                            ! path: '/root/.npm/_logs' }
                                            ! npm ERR! path /root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74fnpm ERR! code EACCES
                                            ! npm ERR! errno -13
                                            ! npm ERR! syscall open
                                            ! npm ERR! Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'npm ERR! at Error (native)
                                            ! npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'
                                            ! npm ERR! at Error (native)
                                            ! npm ERR! cause:
                                            ! npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'
                                            ! npm ERR! at Error (native)
                                            ! npm ERR! errno: -13,
                                            ! npm ERR! code: 'EACCES',
                                            ! npm ERR! syscall: 'open',
                                            ! npm ERR! path: '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f' },
                                            ! npm ERR! isOperational: true,
                                            ! npm ERR! stack: 'Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'\n at Error (native)',
                                            ! npm ERR! errno: -13,
                                            ! npm ERR! code: 'EACCES',
                                            ! npm ERR! syscall: 'open',
                                            ! npm ERR! path: '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f' }
                                            ! npm ERR!
                                            ! npm ERR! The operation was rejected by your operating system.
                                            ! npm ERR! It is likely you do not have the permissions to access this file as the current user
                                            ! npm ERR!
                                            ! npm ERR! If you believe this might be a permissions issue, please double-check the
                                            ! npm ERR! permissions of the file and its containing directories, or try running
                                            ! npm ERR! the command again as root/Administrator (though this is not recommended).
                                            ! npm
                                            ! WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
                                            ! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):npm
                                            ! WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-1 (node_modules/@abandonware/bluetooth-hci-socket):
                                            ! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-1 preinstall: npm install node-pre-gyp
                                            ! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 243
                                            ! npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.paw"
                                            ! npm notice created a lockfile as package-lock.json. You should commit this file.
                                            ! got /opt/iobroker/node_modules/iobroker.paw/admin
                                            ! upload [17] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/words.js words.js application/javascript
                                            ! Update "system.adapter.paw.0"
                                            ! upload [16] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/paw.png paw.png image/png
                                            ! upload [15] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/index_m.html index_m.html text/html
                                            ! upload [14] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/index.html index.html text/html
                                            ! upload [13] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/img/card_logo4.jpg img/card_logo4.jpg image/jpeg
                                            ! upload [12] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/img/card_logo3.jpg img/card_logo3.jpg image/jpeg
                                            ! upload [11] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/img/card_logo2.jpg img/card_logo2.jpg image/jpeg
                                            ! upload [10] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/img/card_logo1.jpg img/card_logo1.jpg image/jpeg
                                            ! upload [9] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/img/Screenshot_2.jpg img/Screenshot_2.jpg image/jpeg
                                            ! upload [8] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/img/Screenshot_1.jpg img/Screenshot_1.jpg image/jpeg
                                            ! upload [7] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
                                            ! upload [6] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
                                            ! upload [5] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
                                            ! upload [4] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/i18n/it/translations.json i18n/it/translations.json application/json
                                            ! upload [3] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
                                            ! upload [2] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/i18n/es/translations.json i18n/es/translations.json application/json
                                            ! upload [1] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/i18n/en/translations.json i18n/en/translations.json application/json
                                            ! upload [0] paw.admin /opt/iobroker/node_modules/iobroker.paw/admin/i18n/de/translations.json i18n/de/translations.json application/json
                                            ! Adapter "paw" updated
                                            ! process exited with code 0

                                            Hatte gestern auch versucht, nen anderen Adapter (zigbee von artek) via Katze und eigener URL upzudaten. Das klappt garnicht mehr 😞 Könnte das nochmal machen und die Fehlermeldung hier einstellen wenn gewünscht.

                                            Wenn ich als root via putty den MC öffne, komme ich auch in den Ordner root/.npm rein…sehr komisch.

                                            Versuche ich genau das gleiche als User thorsten, habe ich keinen Zugriff auf root/.npm

                                            HINWEIS:

                                            So, habe nun in der sshd_config auch den root-User als Anmeldung zugelassen und danach nochmal das Update vom zigbee-Adapter via Katze ausprobiert. Diesmal war die Fehlermeldung sehr viel kürzer:

                                            ! $ ./iobroker url "https://github.com/arteck/ioBroker.zigbee" –debug
                                            ! install https://github.com/arteck/ioBroker.zigb ... all/master
                                            ! npm install https://github.com/arteck/ioBroker.zigb ... all/master --production --save --prefix "/opt/iobroker" (System call)
                                            ! npm ERR! code 128
                                            ! npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master https://github.com/Koenkk/zcl-id.git /root/.npm/_cacache/tmp/git-clone-89ea96f0npm ERR! fatal: Konnte führende Verzeichnisse von '/root/.npm/_cacache/tmp/git-clone-89ea96f0' nicht erstellen.: Keine Berechtigung
                                            ! npm ERR!
                                            ! npm ERR!
                                            ! A complete log of this run can be found in:npm ERR! /root/.npm/_logs/2019-01-11T18_47_28_394Z-debug.log
                                            ! process exited with code 0

                                            Hat also aber auch nix geholfen 😞 jetzt hab ich keine Idee mehr - außer npm (heisst das java etc???) neu zu installieren…

                                            Gehe ich direkt via putty (Anmeldung DIREKT als User root, was nun klappt, in den MC, kann ich problemlos auf das Verzeichnis zugreifen...gibts doch nicht...).

                                            Könnte noch über die Konsole den zigbee-Adapter updaten, aber das probiere ich erst nach Anweisung 😉

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

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

                                            924
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            eacces install npm sudo
                                            14
                                            53
                                            33741
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo