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.
    • 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

                        946
                        Online

                        31.6k
                        Users

                        79.5k
                        Topics

                        1.3m
                        Posts

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