Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. iobroker funktioniert nicht js:638

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    iobroker funktioniert nicht js:638

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      calli236 @Thomas Braun last edited by

      @thomas-braun hallo ich mal wieder glaube hab es jetzt geschafft alles zu zerstören

      pi@raspberrypi:~ $ sudo -H -u iobroker npm install iobroker.js-controller
      npm WARN checkPermissions Missing write access to /home/pi/node_modules/iobroker   .js-controller
      npm WARN checkPermissions Missing write access to /home/pi/node_modules
      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 ERR! code EACCES
      npm ERR! syscall access
      npm ERR! path /home/pi/node_modules/iobroker.js-controller
      npm ERR! errno -13
      npm ERR! Error: EACCES: permission denied, access '/home/pi/node_modules/iobroke   r.js-controller'
      npm ERR!  [Error: EACCES: permission denied, access '/home/pi/node_modules/iobro   ker.js-controller'] {
      npm ERR!   errno: -13,
      npm ERR!   code: 'EACCES',
      npm ERR!   syscall: 'access',
      npm ERR!   path: '/home/pi/node_modules/iobroker.js-controller'
      npm ERR! }
      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 t   he
      npm ERR! permissions of the file and its containing directories, or try running
      npm ERR! the command again as root/Administrator.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/iobroker/.npm/_logs/2021-12-28T17_12_15_621Z-debug.log
      pi@raspberrypi:~ $
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @calli236 last edited by Thomas Braun

        @calli236

        Du solltest auch alles eingeben...

        cd /opt/iobroker
        iobroker stop
        sudo -H -u iobroker npm install iobroker.js-controller
        iobroker restart
        

        Ist dein nodeJS denn nun senkrecht?

        C 1 Reply Last reply Reply Quote 0
        • C
          calli236 @Thomas Braun last edited by

          @thomas-braun

          pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
          
          > iobroker.js-controller@3.3.22 preinstall /opt/iobroker/node_modules/iobroker.js-controller
          > node lib/preinstallCheck.js
          
          NPM version: 6.14.15
          
          > iobroker.js-controller@3.3.22 install /opt/iobroker/node_modules/iobroker.js-controller
          > node iobroker.js setup first
          
          object _design/custom updated
          object _design/system updated
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
          
          + iobroker.js-controller@3.3.22
          updated 1 package in 29.502s
          
          23 packages are looking for funding
            run `npm fund` for details
          
          
          
             ╭───────────────────────────────────────────────────────────────╮
             │                                                               │
             │      New major version of npm available! 6.14.15 → 8.3.0      │
             │   Changelog: https://github.com/npm/cli/releases/tag/v8.3.0   │
             │               Run npm install -g npm to update!               │
             │                                                               │
             ╰───────────────────────────────────────────────────────────────╯
          
          code_text
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @calli236 last edited by

            @calli236
            Und Finger weg von dem npm-Update, das da empfohlen wird.

            Läuft jetzt wieder alles?

            C 1 Reply Last reply Reply Quote 0
            • C
              calli236 @Thomas Braun last edited by

              @thomas-braun ne kann keine verbindung herstellen hab bei ebay einen conbee stick bestellt wo neu und funktionsfähig daberi stand hatte den reingesteckt und seid dem geht nichts mehr

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @calli236 last edited by

                @calli236 sagte in iobroker funktioniert nicht js:638:

                seid dem geht nichts mehr

                Heißt konkret?

                C 1 Reply Last reply Reply Quote 1
                • C
                  calli236 @Thomas Braun last edited by

                  @thomas-braun wenn ich im browser die ip adresse eingebe steht da die seite ist nicht erreichbar

                  Thomas Braun 1 Reply Last reply Reply Quote 1
                  • Thomas Braun
                    Thomas Braun Most Active @calli236 last edited by Thomas Braun

                    @calli236

                    Bitte leserlich schreiben, Groß/Kleinschreibung und Satzzeichen sind kein Luxus, soviel Zeit sollte sein.

                    iobroker status
                    iobroker list adapters
                    iobroker list instances
                    which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                    
                    C 1 Reply Last reply Reply Quote 0
                    • C
                      calli236 @Thomas Braun last edited by calli236

                      @thomas-braun das kam beim Ersten

                      pi@raspberrypi:~ $ iobroker status
                      iobroker is not running on this host.
                      
                      
                      Objects type: file
                      States  type: file
                      

                      dann das !

                      system.adapter.admin                   : admin          - v5.2.3
                      system.adapter.discovery               : discovery      - v2.7.3
                      pi@raspberrypi:~ $
                      
                      pi@raspberrypi:~ $ iobroker list instances
                        system.adapter.admin.0                  : admin                 : raspberrypi                              -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                      
                      + instance is alive
                      
                      Thomas Braun 2 Replies Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @calli236 last edited by

                        @calli236
                        Und der Rest? Und bitte komplette Ein- wie Ausgaben posten, ich rate ungern auf welches Kommando das nun die Ausgabe sein soll.

                        1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @calli236 last edited by Thomas Braun

                          @calli236

                          iobroker start
                          iobroker start admin
                          
                          C 1 Reply Last reply Reply Quote 0
                          • C
                            calli236 @Thomas Braun last edited by

                            @thomas-braun 
                            pi@raspberrypi:~ $ iobroker start
                            pi@raspberrypi:~ $ iobroker start admin
                            pi@raspberrypi:~ $ iobroker status
                            iobroker is not running on this host.
                            
                            
                            Objects type: file
                            States  type: file
                            pi@raspberrypi:~ $ iobroker list adapters
                            system.adapter.admin                   : admin          - v5.2.3
                            system.adapter.discovery               : discovery      - v2.7.3
                            pi@raspberrypi:~ $ iobroker instances
                            iobroker [command]
                            
                            Commands:
                              iobroker setup                                               Setup ioBroker
                              iobroker start                                               Starts the js-controller
                              iobroker stop                                                stops the js-controller
                              iobroker restart                                             Restarts js-controller
                              iobroker debug <adapter>[.<instance>]                        Starts a Node.js debugging session for the adapter instance
                              iobroker info                                                Shows the host info
                              iobroker logs [<adapter>]                                    Monitor log
                              iobroker add <adapter> [desiredNumber]                       Add instance of adapter
                              iobroker install <adapter>                                   Installs a specified adapter
                              iobroker rebuild <adapter>|self                              Rebuilds a specified adapter
                              iobroker url <url> [<name>]                                  Install adapter from specified url, e.g. GitHub
                              iobroker del <adapter>                                       Remove adapter from system
                              iobroker del <adapter>.<instance>                            Remove adapter instance
                              iobroker update [<repositoryUrl>]                            Update repository and list adapters
                              iobroker upgrade                                             Upgrade management
                              iobroker upload                                              Upload management
                              iobroker object                                              Object management
                              iobroker state                                               State management
                              iobroker message <adapter>[.instance] <command> [<message>]  Send message to adapter instance/s
                              iobroker list <type> [<filter>]                              List all entries, like objects
                              iobroker chmod <mode> <file>                                 Change file rights
                              iobroker chown <user> <group> <file>                         Change file ownership
                              iobroker touch <file>                                        Touch file
                              iobroker rm <file>                                           Remove file
                              iobroker file                                                File management
                              iobroker user                                                User commands
                              iobroker group                                               group management
                              iobroker host <hostname>                                     Set host to given hostname
                              iobroker set <adapter>.<instance>                            Change settings of adapter config
                              iobroker license <license.file or license.text>              Update license by given file
                              iobroker cert                                                Certificate management
                              iobroker clean <yes>                                         Clears all objects and states
                              iobroker backup                                              Create backup
                              iobroker restore <backup name or path>                       Restore a specified backup
                              iobroker validate <backup name or path>                      Validate a specified backup
                              iobroker status [all|<adapter>.<instance>]                   Status of ioBroker or adapter instance
                              iobroker repo [<name>]                                       Show repo information
                              iobroker uuid                                                Show uuid of the installation
                              iobroker unsetup                                             Reset license, installation secret and language
                              iobroker fix                                                 Execute the installation fixer script, this updates your ioBroker installation
                              iobroker multihost                                           Multihost management
                              iobroker compact                                             compact group management
                              iobroker plugin                                              Plugin management
                              iobroker version [<adapter>]                                 Show version of js-controller or specified adapter
                            
                            Options:
                                  --help     Show help  [boolean]
                              -v, --version  Show version  [boolean]
                            pi@raspberrypi:~ $ wich nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                            -bash: wich: Kommando nicht gefunden.
                            pi@raspberrypi:~ $
                            
                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @calli236 last edited by Thomas Braun

                              @calli236

                              Kopier doch die Befehle...

                              which usw. heißt das

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                calli236 @Thomas Braun last edited by

                                @thomas-braun

                                pi@raspberrypi:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                                /usr/bin/node
                                /usr/bin/npm
                                pi@raspberrypi:~ $
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @calli236 last edited by

                                  @calli236

                                  sudo ln -s /usr/bin/node /usr/bin/nodejs
                                  which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                                  
                                  C 1 Reply Last reply Reply Quote 0
                                  • C
                                    calli236 @Thomas Braun last edited by

                                    pi@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs
                                    pi@raspberrypi:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy
                                    /usr/bin/nodejs
                                    /usr/bin/node
                                    /usr/bin/npm
                                    v12.22.8
                                    v12.22.8
                                    6.14.15
                                    Holen:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]
                                    OK:2 http://archive.raspberrypi.org/debian buster InRelease
                                    OK:3 https://deb.nodesource.com/node_12.x buster InRelease
                                    Es wurden 15,0 kB in 1 s geholt (15,9 kB/s).
                                    Paketlisten werden gelesen... Fertig
                                    Abhängigkeitsbaum wird aufgebaut.
                                    Statusinformationen werden eingelesen.... Fertig
                                    Alle Pakete sind aktuell.
                                    OK:1 http://archive.raspberrypi.org/debian buster InRelease
                                    OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                    OK:3 https://deb.nodesource.com/node_12.x buster InRelease
                                    Paketlisten werden gelesen... Fertig
                                    Abhängigkeitsbaum wird aufgebaut.
                                    Statusinformationen werden eingelesen.... Fertig
                                    Alle Pakete sind aktuell.
                                    Paketdateien:
                                     100 /var/lib/dpkg/status
                                         release a=now
                                     500 http://archive.raspberrypi.org/debian buster/main armhf Packages
                                         release o=Raspberry Pi Foundation,a=oldstable,n=buster,l=Raspberry Pi Foundation,c=main,b=armhf
                                         origin archive.raspberrypi.org
                                     500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                         release o=Node Source,n=buster,l=Node Source,c=main,b=armhf
                                         origin deb.nodesource.com
                                     500 http://raspbian.raspberrypi.org/raspbian buster/rpi armhf Packages
                                         release o=Raspbian,a=oldstable,n=buster,l=Raspbian,c=rpi,b=armhf
                                         origin raspbian.raspberrypi.org
                                     500 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages
                                         release o=Raspbian,a=oldstable,n=buster,l=Raspbian,c=non-free,b=armhf
                                         origin raspbian.raspberrypi.org
                                     500 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages
                                         release o=Raspbian,a=oldstable,n=buster,l=Raspbian,c=contrib,b=armhf
                                         origin raspbian.raspberrypi.org
                                     500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                         release o=Raspbian,a=oldstable,n=buster,l=Raspbian,c=main,b=armhf
                                         origin raspbian.raspberrypi.org
                                    Mit Pinning verwaltete Pakete:
                                    pi@raspberrypi:~ $
                                    

                                    code_text

                                    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

                                    830
                                    Online

                                    31.9k
                                    Users

                                    80.2k
                                    Topics

                                    1.3m
                                    Posts

                                    3
                                    27
                                    1144
                                    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