Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [HILFE] - iobroker startet nicht js-controller zickt

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    [HILFE] - iobroker startet nicht js-controller zickt

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

      Habe ein Update von iobroker gemacht und seit dem startet er nicht mehr.

      sudo iobroker start

      wirft folgendes aus:

      module.js:478
          throw err;
          ^
      
      Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
          at Function.Module._resolveFilename (module.js:476:15)
          at Function.Module._load (module.js:424:25)
          at Module.runMain (module.js:611:10)
          at run (bootstrap_node.js:394:7)
          at startup (bootstrap_node.js:160:9)
          at bootstrap_node.js:507:3
      
      

      cd /opt/iobroker

      sudo chmod 777 * -R

      sudo npm install iobroker.js-controller –production

      gibt auch einen Fehler:

      npm WARN lifecycle iobroker.js-controller@1.4.2~preinstall: cannot run in wd %s %s (wd=%s) iobroker.js-controller@1.4.2 node lib/preinstall_check.js /opt/iobroker/node_modules/.staging/iobroker.js-controller-a76002ca
      iobroker.inst@1.0.3 /opt/iobroker
      ├── acme@1.0.11  extraneous
      ├── fs-symlink@1.2.1  extraneous
      ├─┬ iobroker@1.0.8
      │ └─┬ yargs@7.1.0
      │   └─┬ read-pkg-up@1.0.1
      │     └─┬ read-pkg@1.1.0
      │       └─┬ normalize-package-data@2.4.0
      │         └─┬ validate-npm-package-license@3.0.3
      │           ├─┬ spdx-correct@3.0.0
      │           │ └── spdx-license-ids@3.0.0
      │           └─┬ spdx-expression-parse@3.0.0
      │             └── spdx-license-ids@3.0.0
      ├─┬ iobroker.admin@3.4.3
      │ └─┬ socket.io@2.1.1
      │   ├─┬ engine.io@3.2.0
      │   │ └─┬ engine.io-parser@2.1.2
      │   │   └── has-binary2@1.0.3  deduped
      │   ├── has-binary2@1.0.3
      │   └─┬ socket.io-client@2.1.1
      │     └── has-binary2@1.0.3  deduped
      ├─┬ iobroker.cloud@2.6.1
      │ ├─┬ socket.io@2.1.1
      │ │ ├─┬ engine.io@3.2.0
      │ │ │ └─┬ engine.io-parser@2.1.2
      │ │ │   └── has-binary2@1.0.3  deduped
      │ │ └── has-binary2@1.0.3
      │ └─┬ socket.io-client@2.1.1
      │   ├─┬ engine.io-client@3.2.1
      │   │ └── xmlhttprequest-ssl@1.5.5
      │   └── has-binary2@1.0.3  deduped
      └─┬ iobroker.discovery@1.0.1
        ├─┬ mdns-discovery@0.2.6
        │ ├─┬ debug@2.2.0
        │ │ └── ms@0.7.1
        │ └─┬ dns-packet@1.3.1
        │   └── ip@1.1.5
        └─┬ node-ssdp@3.2.5
          └── ip@1.1.5
      
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/har-validator'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/mime'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/mkdirp'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/node-pre-gyp'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/nopt'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/rc'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/rimraf'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/semver~0'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/serialport-list'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/serialport-term'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/sshpk-conv'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/sshpk-conv~1'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/sshpk-sign'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/sshpk-sign~1'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/sshpk-verify'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/sshpk-veri~1'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/strip-json-comments'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/supports-color'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/uuid'
      npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/uu~1'
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/has-binary2/package.json'
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.socketio/package.json'
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.vis-hqwidgets/package.json'
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/lru-cache/package.json'
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/spdx-license-ids/package.json'
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/winston/package.json'
      npm WARN Failed to parse json
      npm WARN Unexpected token 'v' at 1:1
      npm WARN var SSDP = require('../index').Server
      npm WARN ^
      npm WARN File: /opt/iobroker/node_modules/iobroker.discovery/node_modules/ip/package.json
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/ms/package.json'
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/lib/package.json'
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/test/package.json'
      npm WARN winston-daily-rotate-file@1.7.2 requires a peer of winston@2.x but none was installed.
      npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller/node_modules/debug/node_modules/ms
      npm ERR! code ENOTEMPTY
      npm ERR! errno -39
      npm ERR! syscall rmdir
      npm ERR! ENOTEMPTY: directory not empty, rmdir '/opt/iobroker/node_modules/iobroker.js-controller/node_modules/debug/node_modules/ms'
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /root/.npm/_logs/2018-05-23T10_36_21_684Z-debug.log
      
      

      node -v gibt wieder:

      v6.14.2

      npm -v gibt wieder:

      4.6.1

      habe auch probiert:

      sudo npm install -g npm@4

      Leider kein erfolg. Kann jemdand helfen?

      1 Reply Last reply Reply Quote 0
      • wendy2702
        wendy2702 last edited by

        Welche Versionen liefen denn vorher?

        Was für ein System?

        Log vom Upgrade vorhanden?

        Kannst mal versuchen die JS-Controller Version zu installieren die vorher lief: –> die 1.0.3 gegen deine zuletzt funktionierende ersetzen

        cd /opt/iobroker
        sudo iobroker stop
        sudo npm i iobroker.js-controller@1.0.3
        sudo iobroker start
        
        1 Reply Last reply Reply Quote 0
        • AlCalzone
          AlCalzone Developer last edited by

          lifecycle iobroker.js-controller@1.4.2~preinstall: cannot run in wd
          

          deutet auf ein Rechteproblem.

          sudo chown -R $(whoami) /opt/iobroker
          

          ändert den Besitzer des Ordners und aller Unterordner auf deinen aktuellen User. Bei mir hat das einige Probleme behoben.

          Danach erneut die Installation des js-controllers probieren.

          Sollte das immer noch nicht gehen aus dem gleichen Grund gibts noch die Holzhammermethode:

          sudo npm install iobroker.js-controller --production --unsafe-perm
          

          (also mit dem zusätzlichen Flag "–unsafe-perm")

          --

          Btw.: Die letzte stable-Version müsste 1.2.3 sein, also "iobroker.js-controller@1.2.3" installieren, um alle Kinderkrankheiten der aktuellen Versionen zu vermeiden

          1 Reply Last reply Reply Quote 0
          • C
            chaser last edited by

            danke für eure Antworten.

            Ist ein Raspberry. Log Datein für das Upgrade sehe ich leider nicht.

            Habe eure Tipps versucht, leider kein Erfolg:

            pi@raspberrypi:~ $
            pi@raspberrypi:~ $ sudo chown -R $(whoami) /opt/iobroker
            pi@raspberrypi:~ $ sudo npm install iobroker.js-controller --production --unsafe           -perm
            
            > iobroker.js-controller@1.4.2 preinstall /home/pi/node_modules/iobroker.js-cont           roller
            > node lib/preinstall_check.js
            
            NPM version: 6.1.0
            npm version >= 5: disabling package-lock
            
            > unix-dgram@0.2.3 install /home/pi/node_modules/unix-dgram
            > node-gyp rebuild
            
            gyp ERR! configure error
            gyp ERR! stack Error: Command failed: /usr/bin/python2 -c import platform; print           (platform.python_version());
            gyp ERR! stack Traceback (most recent call last):
            gyp ERR! stack   File "/usr/lib/python2.7/site.py", line 68, in <module>gyp ERR! stack     import os
            gyp ERR! stack ValueError: bad marshal data (unknown type code)
            gyp ERR! stack
            gyp ERR! stack     at ChildProcess.exithandler (child_process.js:199:12)
            gyp ERR! stack     at emitTwo (events.js:106:13)
            gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
            gyp ERR! stack     at maybeClose (internal/child_process.js:920:16)
            gyp ERR! stack     at Socket. <anonymous>(internal/child_process.js:351:11)
            gyp ERR! stack     at emitOne (events.js:96:13)
            gyp ERR! stack     at Socket.emit (events.js:188:7)
            gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:509:12)
            gyp ERR! System Linux 4.9.59-v7+
            gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy           p/bin/node-gyp.js" "rebuild"
            gyp ERR! cwd /home/pi/node_modules/unix-dgram
            gyp ERR! node -v v6.14.2
            gyp ERR! node-gyp -v v3.6.2
            gyp ERR! not ok
            
            > ursa@0.9.4 install /home/pi/node_modules/ursa
            > node-gyp rebuild
            
            gyp ERR! configure error
            gyp ERR! stack Error: Command failed: /usr/bin/python2 -c import platform; print           (platform.python_version());
            gyp ERR! stack Traceback (most recent call last):
            gyp ERR! stack   File "/usr/lib/python2.7/site.py", line 68, in <module>gyp ERR! stack     import os
            gyp ERR! stack ValueError: bad marshal data (unknown type code)
            gyp ERR! stack
            gyp ERR! stack     at ChildProcess.exithandler (child_process.js:199:12)
            gyp ERR! stack     at emitTwo (events.js:106:13)
            gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
            gyp ERR! stack     at maybeClose (internal/child_process.js:920:16)
            gyp ERR! stack     at Socket. <anonymous>(internal/child_process.js:351:11)
            gyp ERR! stack     at emitOne (events.js:96:13)
            gyp ERR! stack     at Socket.emit (events.js:188:7)
            gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:509:12)
            gyp ERR! System Linux 4.9.59-v7+
            gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy           p/bin/node-gyp.js" "rebuild"
            gyp ERR! cwd /home/pi/node_modules/ursa
            gyp ERR! node -v v6.14.2
            gyp ERR! node-gyp -v v3.6.2
            gyp ERR! not ok
            
            > iobroker.js-controller@1.4.2 install /home/pi/node_modules/iobroker.js-control           ler
            > node iobroker.js setup first
            
            creating conf/iobroker.json
            object system.certificates created
            object system.repositories created
            object system.config created
            object enum.functions created
            object enum.rooms created
            object system.group.user created
            object system.group.administrator created
            object _design/system created
            object system.meta.uuid created: bc093842-65d2-d7c8-a38d-cc880fc4bfa6
            object system.user.admin created
            host.raspberrypi install adapter admin
            npm install --production (System call) in "/home/pi/node_modules/iobroker.admin"
            npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
            npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
            npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
            npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
            npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
            npm notice created a lockfile as package-lock.json. You should commit this file.
            got /home/pi/node_modules/iobroker.admin/admin
            upload [3] admin.admin /home/pi/node_modules/iobroker.admin/admin/words.js words.js application/javascript
            upload [2] admin.admin /home/pi/node_modules/iobroker.admin/admin/index_m.html index_m.html text/html
            upload [1] admin.admin /home/pi/node_modules/iobroker.admin/admin/index.html index.html text/html
            upload [0] admin.admin /home/pi/node_modules/iobroker.admin/admin/admin.png admin.png image/png
            host.raspberrypi object system.adapter.admin created
            host.raspberrypi create instance admin
            host.raspberrypi object admin.0.info created
            host.raspberrypi object system.adapter.admin.upload created
            host.raspberrypi object system.adapter.admin.0.outputCount created
            host.raspberrypi object system.adapter.admin.0.inputCount created
            host.raspberrypi object system.adapter.admin.0.uptime created
            host.raspberrypi object system.adapter.admin.0.memRss created
            host.raspberrypi object system.adapter.admin.0.memHeapTotal created
            host.raspberrypi object system.adapter.admin.0.memHeapUsed created
            host.raspberrypi object system.adapter.admin.0.connected created
            host.raspberrypi object system.adapter.admin.0.alive created
            host.raspberrypi object system.adapter.admin.0 created
            npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
            npm notice created a lockfile as package-lock.json. You should commit this file.
            npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
            npm WARN pi No description
            npm WARN pi No repository field.
            npm WARN pi No README data
            npm WARN pi No license field.
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 (node_modules/unix-dgram):
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 install: `node-gyp rebuild`
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 (node_modules/ursa):
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 install: `node-gyp rebuild`
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
            
            + iobroker.js-controller@1.4.2
            added 328 packages from 232 contributors and audited 1020 packages in 438.251s
            found 0 vulnerabilities</anonymous></module></anonymous></module> 
            

            Noch eine Idee?

            1 Reply Last reply Reply Quote 0
            • wendy2702
              wendy2702 last edited by

              Hast du wirklich NPM 6.1.0 installiert?

              Weiß nicht ob das schon unterstützt wird.

              Ich weiß nur bis 5.7.1

              Gesendet von iPhone mit Tapatalk Pro

              1 Reply Last reply Reply Quote 0
              • C
                chaser last edited by

                Ja habe ich, sollte eigentlich auch funktionieren:

                http://www.iobroker.net/docu/?page_id=5 … ion_Nodejs

                1 Reply Last reply Reply Quote 0
                • wendy2702
                  wendy2702 last edited by

                  Bitte nicht Node mit NPM verwechseln.

                  Mach mal bitte

                  node -v
                  npm -v
                  

                  Gesendet von iPhone mit Tapatalk Pro

                  1 Reply Last reply Reply Quote 0
                  • C
                    chaser last edited by

                    node -v

                    v6.14.2

                    npm -v

                    6.1.0

                    1 Reply Last reply Reply Quote 0
                    • wendy2702
                      wendy2702 last edited by

                      Hm,

                      Node Version ist OK.

                      NPM denke ich zu hoch.

                      Von dem was ich mitbekommen habe ist 5.7.1 die letzte als funktionierende getestete Version

                      Gesendet von iPhone mit Tapatalk Pro

                      1 Reply Last reply Reply Quote 0
                      • C
                        chaser last edited by

                        ok NPM gedowngraded

                        sudo npm install -g npm@5.7.1
                        
                        

                        npm -v

                        5.7.1

                        reboot gemacht

                        sudo iobroker start

                        Leider gleiches Fehlerbild:

                        module.js:478
                            throw err;
                            ^
                        
                        Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iob         roker.js'
                            at Function.Module._resolveFilename (module.js:476:15)
                            at Function.Module._load (module.js:424:25)
                            at Module.runMain (module.js:611:10)
                            at run (bootstrap_node.js:394:7)
                            at startup (bootstrap_node.js:160:9)
                            at bootstrap_node.js:507:3
                        
                        

                        sudo npm i iobroker.js-controller@1.0.3

                        npm WARN deprecated tar.gz@1.0.7: ⚠️  WARNING ⚠️ tar.gz module has been deprecated          and your application is vulnerable. Please use tar module instead: https://npmj         s.com/tar
                        npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.3.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
                        npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.2.0 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
                        npm WARN notice [SECURITY] parsejson has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=parsejson&version=0.0.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
                        
                        > unix-dgram@0.2.3 install /home/pi/node_modules/unix-dgram
                        > node-gyp rebuild
                        
                        gyp ERR! configure error
                        gyp ERR! stack Error: Command failed: /usr/bin/python2 -c import platform; print(platform.python_version());
                        gyp ERR! stack Traceback (most recent call last):
                        gyp ERR! stack   File "/usr/lib/python2.7/site.py", line 68, in <module>gyp ERR! stack     import os
                        gyp ERR! stack ValueError: bad marshal data (unknown type code)
                        gyp ERR! stack
                        gyp ERR! stack     at ChildProcess.exithandler (child_process.js:199:12)
                        gyp ERR! stack     at emitTwo (events.js:106:13)
                        gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                        gyp ERR! stack     at maybeClose (internal/child_process.js:920:16)
                        gyp ERR! stack     at Socket. <anonymous>(internal/child_process.js:351:11)
                        gyp ERR! stack     at emitOne (events.js:96:13)
                        gyp ERR! stack     at Socket.emit (events.js:188:7)
                        gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:509:12)
                        gyp ERR! System Linux 4.9.59-v7+
                        gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                        gyp ERR! cwd /home/pi/node_modules/unix-dgram
                        gyp ERR! node -v v6.14.2
                        gyp ERR! node-gyp -v v3.6.2
                        gyp ERR! not ok
                        
                        > ursa@0.9.4 install /home/pi/node_modules/ursa
                        > node-gyp rebuild
                        
                        gyp ERR! configure error
                        gyp ERR! stack Error: Command failed: /usr/bin/python2 -c import platform; print(platform.python_version());
                        gyp ERR! stack Traceback (most recent call last):
                        gyp ERR! stack   File "/usr/lib/python2.7/site.py", line 68, in <module>gyp ERR! stack     import os
                        gyp ERR! stack ValueError: bad marshal data (unknown type code)
                        gyp ERR! stack
                        gyp ERR! stack     at ChildProcess.exithandler (child_process.js:199:12)
                        gyp ERR! stack     at emitTwo (events.js:106:13)
                        gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                        gyp ERR! stack     at maybeClose (internal/child_process.js:920:16)
                        gyp ERR! stack     at Socket. <anonymous>(internal/child_process.js:351:11)
                        gyp ERR! stack     at emitOne (events.js:96:13)
                        gyp ERR! stack     at Socket.emit (events.js:188:7)
                        gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:509:12)
                        gyp ERR! System Linux 4.9.59-v7+
                        gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                        gyp ERR! cwd /home/pi/node_modules/ursa
                        gyp ERR! node -v v6.14.2
                        gyp ERR! node-gyp -v v3.6.2
                        gyp ERR! not ok
                        
                        > iobroker.js-controller@1.0.3 install /home/pi/node_modules/iobroker.js-controller
                        > node iobroker.js setup first
                        
                        Cannot write file. Not critical: Error: EACCES: permission denied, open '/home/pi/node_modules/iobroker.js-controller/lib/setup/../../../../killall.sh'
                        fs.js:1112
                          return binding.unlink(pathModule._makeLong(path));
                                         ^
                        
                        Error: EACCES: permission denied, unlink '/home/pi/node_modules/iobroker.js-controller/lib/setup/../../_service_iobroker.bat'
                            at Error (native)
                            at Object.fs.unlinkSync (fs.js:1112:18)
                            at Setup.setup (/home/pi/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:126:24)
                            at /home/pi/node_modules/iobroker.js-controller/lib/setup.js:590:27
                            at processCommand (/home/pi/node_modules/iobroker.js-controller/lib/setup.js:622:15)
                            at Object.module.exports.execute (/home/pi/node_modules/iobroker.js-controller/lib/setup.js:2903:5)
                            at Object. <anonymous>(/home/pi/node_modules/iobroker.js-controller/iobroker.js:1:100)
                            at Module._compile (module.js:577:32)
                            at Object.Module._extensions..js (module.js:586:10)
                            at Module.load (module.js:494:32)
                        npm WARN npm@2.15.12 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions.
                        npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
                        npm WARN pi No description
                        npm WARN pi No repository field.
                        npm WARN pi No README data
                        npm WARN pi No license field.
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 (node_modules/unix-dgram):
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 install: `node-gyp rebuild`
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 (node_modules/ursa):
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 install: `node-gyp rebuild`
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                        
                        npm ERR! code ELIFECYCLE
                        npm ERR! errno 1
                        npm ERR! iobroker.js-controller@1.0.3 install: `node iobroker.js setup first`
                        npm ERR! Exit status 1
                        npm ERR!
                        npm ERR! Failed at the iobroker.js-controller@1.0.3 install script.
                        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /root/.npm/_logs/2018-05-25T16_07_47_464Z-debug.log</anonymous></anonymous></module></anonymous></module> 
                        

                        sudo npm install iobroker.js-controller –production --unsafe-perm

                        > iobroker.js-controller@1.4.2 preinstall /home/pi/node_modules/iobroker.js-controller
                        > node lib/preinstall_check.js
                        
                        NPM version: 5.7.1
                        npm version >= 5: disabling package-lock
                        
                        > unix-dgram@0.2.3 install /home/pi/node_modules/unix-dgram
                        > node-gyp rebuild
                        
                        gyp ERR! configure error
                        gyp ERR! stack Error: Command failed: /usr/bin/python2 -c import platform; print(platform.python_version());
                        gyp ERR! stack Traceback (most recent call last):
                        gyp ERR! stack   File "/usr/lib/python2.7/site.py", line 68, in <module>gyp ERR! stack     import os
                        gyp ERR! stack ValueError: bad marshal data (unknown type code)
                        gyp ERR! stack
                        gyp ERR! stack     at ChildProcess.exithandler (child_process.js:199:12)
                        gyp ERR! stack     at emitTwo (events.js:106:13)
                        gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                        gyp ERR! stack     at maybeClose (internal/child_process.js:920:16)
                        gyp ERR! stack     at Socket. <anonymous>(internal/child_process.js:351:11)
                        gyp ERR! stack     at emitOne (events.js:96:13)
                        gyp ERR! stack     at Socket.emit (events.js:188:7)
                        gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:509:12)
                        gyp ERR! System Linux 4.9.59-v7+
                        gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                        gyp ERR! cwd /home/pi/node_modules/unix-dgram
                        gyp ERR! node -v v6.14.2
                        gyp ERR! node-gyp -v v3.6.2
                        gyp ERR! not ok
                        
                        > ursa@0.9.4 install /home/pi/node_modules/ursa
                        > node-gyp rebuild
                        
                        gyp ERR! configure error
                        gyp ERR! stack Error: Command failed: /usr/bin/python2 -c import platform; print(platform.python_version());
                        gyp ERR! stack Traceback (most recent call last):
                        gyp ERR! stack   File "/usr/lib/python2.7/site.py", line 68, in <module>gyp ERR! stack     import os
                        gyp ERR! stack ValueError: bad marshal data (unknown type code)
                        gyp ERR! stack
                        gyp ERR! stack     at ChildProcess.exithandler (child_process.js:199:12)
                        gyp ERR! stack     at emitTwo (events.js:106:13)
                        gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                        gyp ERR! stack     at maybeClose (internal/child_process.js:920:16)
                        gyp ERR! stack     at Socket. <anonymous>(internal/child_process.js:351:11)
                        gyp ERR! stack     at emitOne (events.js:96:13)
                        gyp ERR! stack     at Socket.emit (events.js:188:7)
                        gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:509:12)
                        gyp ERR! System Linux 4.9.59-v7+
                        gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                        gyp ERR! cwd /home/pi/node_modules/ursa
                        gyp ERR! node -v v6.14.2
                        gyp ERR! node-gyp -v v3.6.2
                        gyp ERR! not ok
                        
                        > iobroker.js-controller@1.4.2 install /home/pi/node_modules/iobroker.js-controller
                        > node iobroker.js setup first
                        
                        npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
                        npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
                        npm WARN pi No description
                        npm WARN pi No repository field.
                        npm WARN pi No README data
                        npm WARN pi No license field.
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 (node_modules/unix-dgram):
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@0.2.3 install: `node-gyp rebuild`
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 (node_modules/ursa):
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 install: `node-gyp rebuild`
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                        
                        + iobroker.js-controller@1.4.2
                        added 1 package from 2 contributors in 37.016s</anonymous></module></anonymous></module> 
                        

                        Keiner eine Idee woran das liegen kann?

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephan61 last edited by

                          Hallo chaser du bist im falschen Ordner

                          iobroker.js-controller@1.4.2 preinstall /home/pi/node_modules/iobroker.js-controller

                          du musst in /opt/iobroker installieren

                          Gruß Stephan

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

                            @wendy2702:

                            Von dem was ich mitbekommen habe ist 5.7.1 die letzte als funktionierende getestete Version `

                            Nee, das hast du falsch verstanden. 5.7.1 ist das Minimum, wenn npm5+ verwendet wird. <= 4.x ist ok, >= 5.7.1 ist ok (aber hat so seine Probleme)

                            1 Reply Last reply Reply Quote 0
                            • wendy2702
                              wendy2702 last edited by

                              @AlCalzone:

                              @wendy2702:

                              Von dem was ich mitbekommen habe ist 5.7.1 die letzte als funktionierende getestete Version `

                              Nee, das hast du falsch verstanden. 5.7.1 ist das Minimum, wenn npm5+ verwendet wird. <= 4.x ist ok, >= 5.7.1 ist ok (aber hat so seine Probleme) `

                              Ah, ok.

                              Und wie sieht es dann mit NPM 6 aus?

                              Gesendet von iPhone mit Tapatalk Pro

                              1 Reply Last reply Reply Quote 0
                              • C
                                chaser last edited by

                                Bringt leider auch keine Abhilfe:

                                pi@raspberrypi:~ $ cd /opt/iobroker
                                pi@raspberrypi:/opt/iobroker $ sudo npm install iobroker.js-controller --product            ion --unsafe-perm
                                
                                > iobroker.js-controller@1.4.2 preinstall /opt/iobroker/node_modules/iobroker.js            -controller
                                > node lib/preinstall_check.js
                                
                                NPM version: 5.7.1
                                npm version >= 5: disabling package-lock
                                
                                > iobroker.js-controller@1.4.2 install /opt/iobroker/node_modules/iobroker.js-co            ntroller
                                > node iobroker.js setup first
                                
                                npm notice created a lockfile as package-lock.json. You should commit this file.
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/har-validator'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/mime'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/mkdirp'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/node-pre-gyp'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/nopt'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/rc'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/rimraf'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/semver~0'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/serialport-list'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/serialport-term'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/sshpk-conv'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/sshpk-conv~1'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/sshpk-sign'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/sshpk-sign~1'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/sshpk-verify'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/sshpk-veri~1'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/strip-json-comments'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/supports-color'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/uuid'
                                npm WARN enoent ENOENT: no such file or directory, stat '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/uu~1'
                                npm WARN Failed to parse json
                                npm WARN Unexpected token v in JSON at position 0 while parsing near 'var SSDP =             require('...'
                                npm WARN File: /opt/iobroker/node_modules/iobroker.discovery/node_modules/ip/pac            kage.json
                                npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modu            les/iobroker.discovery/node_modules/ms/package.json'
                                npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/lib/package.json'
                                npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modu            les/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-            signature/node_modules/test/package.json'
                                
                                + iobroker.js-controller@1.4.2
                                added 28 packages from 34 contributors, updated 2 packages and moved 5 packages             in 174.159s
                                
                                   ╭─────────────────────────────────────╮
                                   │                                     │
                                   │   Update available 5.7.1 → 6.1.0    │
                                   │     Run npm i -g npm to update      │
                                   │                                     │
                                   ╰─────────────────────────────────────╯
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • wendy2702
                                  wendy2702 last edited by

                                  Installiere doch mal vorher das Paket````
                                  serialport

                                  
                                  Das meckert er doch an
                                  
                                  Gesendet von iPhone mit Tapatalk Pro
                                  1 Reply Last reply Reply Quote 0
                                  • AlCalzone
                                    AlCalzone Developer last edited by

                                    @wendy2702:

                                    Und wie sieht es dann mit NPM 6 aus? `
                                    Läuft bei mir, hat aber die selben Fallstricke wie NPM5, was root-Rechte angeht.

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

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    790
                                    Online

                                    31.6k
                                    Users

                                    79.5k
                                    Topics

                                    1.3m
                                    Posts

                                    4
                                    16
                                    2542
                                    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