Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. NPM Problem

    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

    NPM Problem

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

      @rich90 sagte in NPM Problem:

      tr-O64@0.2.4

      Versuch mal:

      cd /opt/iobroker/node_modules/iobroker.tr-064
      npm uninstall tr-O64
      
      R 1 Reply Last reply Reply Quote 0
      • R
        Rich90 @Thomas Braun last edited by

        @thomas-braun said in NPM Problem:

        npm uninstall tr-O64

        npm uninstall tr-O64
        npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
        npm WARN deprecated dgram@1.0.1: npm is holding this package for security reasons. As it's a core Node module, we will not transfer it over to other users. You may safely remove the package from your dependencies.
        npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
        npm WARN deprecated har-validator@5.1.5: this library is no longer supported
        npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
        npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
        npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
        npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
        npm notice created a lockfile as package-lock.json. You should commit this file.
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (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":"x64"})
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/glob-watcher/node_modules/chokidar/node_modules/fsevents):
        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
        
        added 541 packages from 765 contributors and audited 544 packages in 11.703s
        
        35 packages are looking for funding
          run `npm fund` for details
        
        found 35 vulnerabilities (33 low, 2 moderate)
          run `npm audit fix` to fix them, or `npm audit` for details
        
        mikeal created this issue in request/request

        open Request’s Past, Present and Future #3142

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

          @rich90

          iobroker update
          iobroker upgrade
          

          bringt?

          R 1 Reply Last reply Reply Quote 0
          • R
            Rich90 @Thomas Braun last edited by

            @thomas-braun said in NPM Problem:

            iobroker upgrade

            iobroker upgrade
            Circular dependency detected between adapters "iot"
            
            This upgrade of "vis" will introduce the following changes:
            ==========================================================================
            -> 1.3.10:
            Fixed the support of admin5
            ==========================================================================
            
            Would you like to upgrade vis from @1.3.9 to @1.3.10 now? [(y)es, (n)o]: y
            Update vis from @1.3.9 to @1.3.10
            NPM version: 6.14.13
            npm install iobroker.vis@1.3.10 --loglevel error --prefix "/opt/iobroker" (System call)
            npm ERR! code EINVALIDTAGNAME
            npm ERR! Invalid tag name "node_modules\tr-O64": Tags may not have any characters that encodeURIComponent encodes.
            
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /opt/iobroker/.npm/_logs/2021-07-04T20_38_57_402Z-debug.log
            upload [3] vis.admin /opt/iobroker/node_modules/iobroker.vis/admin/words.js words.js application/javascript
            Adapter "system.adapter.vis.0" restarted.
            upload [2] vis.admin /opt/iobroker/node_modules/iobroker.vis/admin/vis.png vis.png image/png
            upload [1] vis.admin /opt/iobroker/node_modules/iobroker.vis/admin/index_m.html index_m.html text/html
            upload [0] vis.admin /opt/iobroker/node_modules/iobroker.vis/admin/index.html index.html text/html
            upload [300] vis /opt/iobroker/node_modules/iobroker.vis/www/widgets/jqui/img/ct.png widgets/jqui/img/ct.png image/png
            upload [250] vis /opt/iobroker/node_modules/iobroker.vis/www/widgets/basic/img/Prev_ValueBool.png widgets/basic/img/Prev_ValueBool.png image/png
            upload [200] vis /opt/iobroker/node_modules/iobroker.vis/www/lib/js/jquery.ba-resize.min.js lib/js/jquery.ba-resize.min.js application/javascript
            upload [150] vis /opt/iobroker/node_modules/iobroker.vis/www/js/visEditInspect.js js/visEditInspect.js application/javascript
            upload [100] vis /opt/iobroker/node_modules/iobroker.vis/www/js/fm/icon/actions/delete.png js/fm/icon/actions/delete.png image/png
            upload [90] vis /opt/iobroker/node_modules/iobroker.vis/www/index.html index.html text/html
            upload [80] vis /opt/iobroker/node_modules/iobroker.vis/www/img/faviconEdit.png img/faviconEdit.png image/png
            upload [70] vis /opt/iobroker/node_modules/iobroker.vis/www/img/bulbOn.png img/bulbOn.png image/png
            upload [60] vis /opt/iobroker/node_modules/iobroker.vis/www/img/back/oblique-line-bk.png img/back/oblique-line-bk.png image/png
            upload [50] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/timestamp.png icon/timestamp.png image/png
            upload [40] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/ok.png icon/ok.png image/png
            upload [30] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/distribute-vertical-equal.png icon/distribute-vertical-equal.png image/png
            upload [20] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/align-width.png icon/align-width.png image/png
            upload [19] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/align-vertical-top-2.png icon/align-vertical-top-2.png image/png
            upload [18] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/align-vertical-center-2.png icon/align-vertical-center-2.png image/png
            upload [17] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/align-vertical-bottom-2.png icon/align-vertical-bottom-2.png image/png
            upload [16] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/align-horizontal-right-2.png icon/align-horizontal-right-2.png image/png
            upload [15] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/align-horizontal-left.png icon/align-horizontal-left.png image/png
            upload [14] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/align-horizontal-center-2.png icon/align-horizontal-center-2.png image/png
            upload [13] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/align-height.png icon/align-height.png image/png
            upload [12] vis /opt/iobroker/node_modules/iobroker.vis/www/icon/add.png icon/add.png image/png
            upload [11] vis /opt/iobroker/node_modules/iobroker.vis/www/edit.src.html edit.src.html text/html
            upload [10] vis /opt/iobroker/node_modules/iobroker.vis/www/edit.html edit.html text/html
            upload [9] vis /opt/iobroker/node_modules/iobroker.vis/www/css/vis.css css/vis.css text/css
            upload [8] vis /opt/iobroker/node_modules/iobroker.vis/www/css/vis-editor.css css/vis-editor.css text/css
            upload [7] vis /opt/iobroker/node_modules/iobroker.vis/www/css/styles.css css/styles.css text/css
            upload [6] vis /opt/iobroker/node_modules/iobroker.vis/www/css/montserrat-regular-webfont.woff css/montserrat-regular-webfont.woff font/woff
            upload [5] vis /opt/iobroker/node_modules/iobroker.vis/www/css/doc.css css/doc.css text/css
            upload [4] vis /opt/iobroker/node_modules/iobroker.vis/www/css/backgrounds.css css/backgrounds.css text/css
            upload [3] vis /opt/iobroker/node_modules/iobroker.vis/www/css/app.css css/app.css text/css
            upload [2] vis /opt/iobroker/node_modules/iobroker.vis/www/css/add_kian.css css/add_kian.css text/css
            upload [1] vis /opt/iobroker/node_modules/iobroker.vis/www/cordova.js cordova.js application/javascript
            upload [0] vis /opt/iobroker/node_modules/iobroker.vis/www/cache.manifest cache.manifest text/cache-manifest
            Adapter "vis" updated
            

            und das für alle die als updatable in der Liste stehen (Liste ist ja oben schon)

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

              @rich90 sagte in NPM Problem:

              Circular dependency detected between adapters "iot"

              Da hast du noch einen Schuß...

              R 1 Reply Last reply Reply Quote 0
              • R
                Rich90 @Thomas Braun last edited by

                @thomas-braun @crunchip @Glasfaser
                Danke erstmal für eure Zeit und Hilfe bis hier her.
                Da ich keine Ahnung habe: wie würdet ihr das einschätzen, ist das reparabel oder kann ich mich mental schon auf eine neue Installation vorbereiten?

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

                  @rich90 Ich würde mir ein Backup von einem Zeitpunkt schnappen bevor du das so verfummelt hast.

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    Rich90 @Thomas Braun last edited by

                    @thomas-braun
                    😍 daran habe ich gar nicht gedacht. Danke für den Hinweis!

                    1 Reply Last reply Reply Quote 0
                    • V
                      vsa last edited by

                      Hallo Zusammen,

                      hm. auch ich habe das o.g. Problem neuerdings. Ich habe auch lediglich iobroker über die Konsole bisher geupgraded. Seit einigen Tagen kann ich keine Adapter mehr updaten.

                      Meine Fehlermeldung beim Versuch irgendein Adapter zu updaten oder eben den veralteten tr-=64 Adapter übder die Konsle zu deaktivieren:

                      npm uninstall tr-O64
                      npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
                      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                      npm WARN deprecated dgram@1.0.1: npm is holding this package for security reasons. As it's a core Node module, we will not transfer it over to other users. You may safely remove the package from your dependencies.
                      npm ERR! code EINVALIDTAGNAME
                      npm ERR! Invalid tag name "node_modules\tr-O64": Tags may not have any characters that encodeURIComponent encodes.
                      
                      Would you like to upgrade vw-connect from @0.0.39 to @0.0.40 now? [(y)es, (n)o]: y
                      Update vw-connect from @0.0.39 to @0.0.40
                      NPM version: 6.14.14
                      npm install iobroker.vw-connect@0.0.40 --loglevel error --prefix "/opt/iobroker" (System call)
                      npm ERR! code EINVALIDTAGNAME
                      npm ERR! Invalid tag name "node_modules\tr-O64": Tags may not have any characters that encodeURIComponent encodes.
                      
                      npm ERR! A complete log of this run can be found in:
                      npm ERR!     /home/iobroker/.npm/_logs/2021-08-31T16_46_07_551Z-debug.log
                      upload [4] vw-connect.admin /opt/iobroker/node_modules/iobroker.vw-connect/admin/words.js words.js application/javascript
                      upload [3] vw-connect.admin /opt/iobroker/node_modules/iobroker.vw-connect/admin/vw-connect.png vw-connect.png image/pngupload [2] vw-connect.admin /opt/iobroker/node_modules/iobroker.vw-connect/admin/style.css style.css text/css
                      upload [1] vw-connect.admin /opt/iobroker/node_modules/iobroker.vw-connect/admin/index_m.html index_m.html text/html
                      upload [0] vw-connect.admin /opt/iobroker/node_modules/iobroker.vw-connect/admin/admin.d.ts admin.d.ts video/mp2t
                      Adapter "vw-connect" updated
                      

                      which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs

                      pi@ioBroker-RasPi4:/opt/iobroker/node_modules $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                      /usr/bin/nodejs
                      v14.17.5
                      /usr/local/bin/node
                      v14.17.5
                      /usr/local/bin/npm
                      6.14.14
                      nodejs:
                        Installiert:           14.17.5-1nodesource1
                        Installationskandidat: 14.17.6-deb-1nodesource1
                        Versionstabelle:
                           14.17.6-deb-1nodesource1 500
                              500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
                       *** 14.17.5-1nodesource1 100
                              100 /var/lib/dpkg/status
                           10.24.0~dfsg-1~deb10u1 500
                              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                      

                      iobroker update -i

                      pi@ioBroker-RasPi4:/opt/iobroker/node_modules $ iobroker update -i
                      Used repository: latest
                      hash unchanged, use cached sources
                      update done
                      Adapter    "admin"         : 5.1.25   , installed 5.1.25
                      Adapter    "daswetter"     : 3.0.7    , installed 3.0.7
                      Adapter    "devices"       : 1.0.9    , installed 1.0.9
                      Adapter    "discovery"     : 2.7.0    , installed 2.7.0
                      Adapter    "fritzdect"     : 2.1.15   , installed 2.1.15
                      Adapter    "history"       : 1.9.13   , installed 1.9.13
                      Adapter    "hue"           : 3.5.23   , installed 3.5.22 [Updateable]
                      Adapter    "icons-mfd-png" : 1.0.2    , installed 1.0.2
                      Adapter    "icons-mfd-svg" : 1.0.2    , installed 1.0.2
                      Adapter    "influxdb"      : 2.2.0    , installed 2.1.1 [Updateable]
                      Adapter    "info"          : 1.9.8    , installed 1.9.8
                      Adapter    "innogy-smarthome": 0.3.7   , installed 0.3.7
                      Adapter    "jarvis"        : 2.2.3    , installed 2.2.3
                      Adapter    "javascript"    : 5.2.8    , installed 5.2.8
                      Controller "js-controller" : 3.3.15   , installed 3.3.15
                      Adapter    "meross"        : 1.6.3    , installed 1.6.3
                      Adapter    "netatmo"       : 1.4.4    , installed 1.4.4
                      Adapter    "pi-hole"       : 1.3.2    , installed 1.3.2
                      Adapter    "pollenflug"    : 1.0.6    , installed 1.0.6
                      Adapter    "simple-api"    : 2.6.1    , installed 2.6.1
                      Adapter    "socketio"      : 3.1.4    , installed 3.1.4
                      Adapter    "terminal"      : 0.1.2    , installed 0.1.2
                      Adapter    "tr-064"        : 4.2.14   , installed 4.2.14
                      Adapter    "vis"           : 1.4.3    , installed 1.4.3
                      Adapter    "vis-bars"      : 0.1.4    , installed 0.1.4
                      Adapter    "vis-canvas-gauges": 0.1.5   , installed 0.1.5
                      Adapter    "vis-fancyswitch": 1.1.0   , installed 1.1.0
                      Adapter    "vis-google-fonts": 0.1.0   , installed 0.1.0
                      Adapter    "vis-history"   : 1.0.0    , installed 1.0.0
                      Adapter    "vis-hqwidgets" : 1.1.7    , installed 1.1.7
                      Adapter    "vis-jqui-mfd"  : 1.0.12   , installed 1.0.12
                      Adapter    "vis-justgage"  : 1.0.2    , installed 1.0.2
                      Adapter    "vis-map"       : 1.0.4    , installed 1.0.4
                      Adapter    "vis-materialdesign": 0.5.9   , installed 0.5.9
                      Adapter    "vis-metro"     : 1.1.2    , installed 1.1.2
                      Adapter    "vis-plumb"     : 1.0.2    , installed 1.0.2
                      Adapter    "vis-timeandweather": 1.1.7   , installed 1.1.7
                      Adapter    "vw-connect"    : 0.0.40   , installed 0.0.39 [Updateable]
                      Adapter    "weatherunderground": 3.3.1   , installed 3.3.1
                      Adapter    "web"           : 3.4.9    , installed 3.4.9
                      Adapter    "yahka"         : 0.13.1   , installed 0.13.1
                      Adapter    "yeelight-2"    : 1.1.2    , installed 1.1.2
                      

                      iobroker list instances

                      pi@ioBroker-RasPi4:/opt/iobroker/node_modules $ iobroker list instances
                      + system.adapter.admin.0                  : admin                 : ioBroker-RasPi4                          -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                        system.adapter.backitup.0               : backitup              : ioBroker-RasPi4                          - disabled
                        system.adapter.daswetter.0              : daswetter             : ioBroker-RasPi4                          -  enabled
                      + system.adapter.discovery.0              : discovery             : ioBroker-RasPi4                          -  enabled
                      + system.adapter.fritzdect.0              : fritzdect             : ioBroker-RasPi4                          -  enabled
                      + system.adapter.hue.0                    : hue                   : ioBroker-RasPi4                          -  enabled, port: 443
                        system.adapter.icons-mfd-png.0          : icons-mfd-png         : ioBroker-RasPi4                          -  enabled
                        system.adapter.icons-mfd-svg.0          : icons-mfd-svg         : ioBroker-RasPi4                          -  enabled
                      + system.adapter.influxdb.0               : influxdb              : ioBroker-RasPi4                          -  enabled, port: 8086
                      + system.adapter.innogy-smarthome.0       : innogy-smarthome      : ioBroker-RasPi4                          -  enabled
                      + system.adapter.jarvis.0                 : jarvis                : ioBroker-RasPi4                          -  enabled
                      + system.adapter.javascript.0             : javascript            : ioBroker-RasPi4                          -  enabled
                      + system.adapter.netatmo.0                : netatmo               : ioBroker-RasPi4                          -  enabled
                      + system.adapter.pi-hole.0                : pi-hole               : ioBroker-RasPi4                          -  enabled
                      + system.adapter.pollenflug.0             : pollenflug            : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis-bars.0               : vis-bars              : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis-canvas-gauges.0      : vis-canvas-gauges     : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis-fancyswitch.0        : vis-fancyswitch       : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis-google-fonts.0       : vis-google-fonts      : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis-history.0            : vis-history           : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis-hqwidgets.0          : vis-hqwidgets         : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis-jqui-mfd.0           : vis-jqui-mfd          : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis-justgage.0           : vis-justgage          : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis-materialdesign.0     : vis-materialdesign    : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis-metro.0              : vis-metro             : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis-plumb.0              : vis-plumb             : ioBroker-RasPi4                          -  enabled
                        system.adapter.vis.0                    : vis                   : ioBroker-RasPi4                          -  enabled
                        system.adapter.weatherunderground.0     : weatherunderground    : ioBroker-RasPi4                          -  enabled
                      + system.adapter.web.0                    : web                   : ioBroker-RasPi4                          -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                      + system.adapter.yahka.1                  : yahka                 : ioBroker-RasPi4                          -  enabled
                      
                      + instance is alive
                      

                      iobroker list adapters

                      pi@ioBroker-RasPi4:/opt/iobroker/node_modules $ iobroker list adapters
                      system.adapter.admin                   : admin          - v5.1.25
                      system.adapter.backitup                : backitup       - v1.5.6
                      system.adapter.daswetter               : daswetter      - v3.0.7
                      system.adapter.discovery               : discovery      - v2.7.0
                      system.adapter.fritzdect               : fritzdect      - v2.1.15
                      system.adapter.hue                     : hue            - v3.5.22
                      system.adapter.icons-mfd-png           : icons-mfd-png  - v1.0.2
                      system.adapter.icons-mfd-svg           : icons-mfd-svg  - v1.0.2
                      system.adapter.influxdb                : influxdb       - v2.1.1
                      system.adapter.info                    : info           - v1.9.8
                      system.adapter.innogy-smarthome        : innogy-smarthome - v0.3.7
                      system.adapter.jarvis                  : jarvis         - v2.2.3
                      system.adapter.javascript              : javascript     - v5.2.8
                      system.adapter.netatmo                 : netatmo        - v1.4.4
                      system.adapter.pi-hole                 : pi-hole        - v1.3.2
                      system.adapter.pollenflug              : pollenflug     - v1.0.6
                      system.adapter.simple-api              : simple-api     - v2.6.1
                      system.adapter.socketio                : socketio       - v3.1.4
                      system.adapter.terminal                : terminal       - v0.1.2
                      system.adapter.vis                     : vis            - v1.4.3
                      system.adapter.vis-bars                : vis-bars       - v0.1.4
                      system.adapter.vis-canvas-gauges       : vis-canvas-gauges - v0.1.5
                      system.adapter.vis-fancyswitch         : vis-fancyswitch - v1.1.0
                      system.adapter.vis-google-fonts        : vis-google-fonts - v0.1.0
                      system.adapter.vis-history             : vis-history    - v1.0.0
                      system.adapter.vis-hqwidgets           : vis-hqwidgets  - v1.1.7
                      system.adapter.vis-jqui-mfd            : vis-jqui-mfd   - v1.0.12
                      system.adapter.vis-justgage            : vis-justgage   - v1.0.2
                      system.adapter.vis-materialdesign      : vis-materialdesign - v0.5.9
                      system.adapter.vis-metro               : vis-metro      - v1.1.2
                      system.adapter.vis-plumb               : vis-plumb      - v1.0.2
                      system.adapter.vw-connect              : vw-connect     - v0.0.39
                      system.adapter.weatherunderground      : weatherunderground - v3.3.1
                      system.adapter.web                     : web            - v3.4.9
                      system.adapter.yahka                   : yahka          - v0.13.1
                      

                      iobroker version

                      pi@ioBroker-RasPi4:/opt/iobroker/node_modules $ iobroker version
                      3.3.15
                      

                      Ich schneine einen sehr ähnliches Problem zu haben wie Rich90. Wie könnte ich den meine iobroker-Installation noch retten?
                      VG vsa

                      mikeal created this issue in request/request

                      open Request’s Past, Present and Future #3142

                      mikeal created this issue in request/request

                      open Request’s Past, Present and Future #3142

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

                        @vsa

                        nodeJS ist schon mal falsch installiert. Schau in meiner Signatur, da wirds erklärt.

                        Und der Adapter heißt tr-064, nicht tr-O64

                        V 1 Reply Last reply Reply Quote 0
                        • V
                          vsa @Thomas Braun last edited by

                          @thomas-braun

                          Dank schonmal.
                          Ja, das hatte ich gelesen,
                          trotz Deiner Anleitung wird in

                          /usr/bin/nodejs
                          
                          v14.17.5
                          
                          /usr/local/bin/node
                          
                          v14.17.5
                          
                          /usr/local/bin/npm
                          
                          

                          6.14.14

                          installiert. Und nicht in /usr/bin

                          Wie kann ich das forcieren?
                          VG vsa

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

                            @vsa sagte in NPM Problem:

                            trotz Deiner Anleitung wird in /usr/local/bin/ installiert

                            Das kann nicht sein.

                            V 1 Reply Last reply Reply Quote 0
                            • V
                              vsa @Thomas Braun last edited by

                              @thomas-braun
                              Hallo nochmals.

                              Gerne hier mein Mitschnitt:

                              pi@ioBroker-RasPi4:/opt/iobroker/node_modules $ iobroker stop
                              pi@ioBroker-RasPi4:/opt/iobroker/node_modules $ sudo nano /etc/apt/sources.list.d/nodesource.list
                              pi@ioBroker-RasPi4:/opt/iobroker/node_modules $ sudo apt upgrade
                              Paketlisten werden gelesen... Fertig
                              Abhängigkeitsbaum wird aufgebaut.
                              Statusinformationen werden eingelesen.... Fertig
                              Paketaktualisierung (Upgrade) wird berechnet... Fertig
                              Die folgenden Pakete werden aktualisiert (Upgrade):
                                bluez nodejs
                              2 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                              Es müssen 23,6 MB an Archiven heruntergeladen werden.
                              Nach dieser Operation werden 135 kB Plattenplatz zusätzlich benutzt.
                              Möchten Sie fortfahren? [J/n]
                              Holen:1 http://archive.raspberrypi.org/debian buster/main armhf bluez armhf 5.50-1.2~deb10u2+rpt1 [770 kB]
                              Holen:2 https://deb.nodesource.com/node_14.x buster/main armhf nodejs armhf 14.17.6-deb-1nodesource1 [22,8 MB]
                              Es wurden 23,6 MB in 2 s geholt (10,1 MB/s).
                              Changelogs werden gelesen... Fertig
                              (Lese Datenbank ... 61329 Dateien und Verzeichnisse sind derzeit installiert.)
                              Vorbereitung zum Entpacken von .../bluez_5.50-1.2~deb10u2+rpt1_armhf.deb ...
                              Entpacken von bluez (5.50-1.2~deb10u2+rpt1) über (5.50-1.2~deb10u2) ...
                              Vorbereitung zum Entpacken von .../nodejs_14.17.6-deb-1nodesource1_armhf.deb ...
                              Entpacken von nodejs (14.17.6-deb-1nodesource1) über (14.17.5-1nodesource1) ...
                              nodejs (14.17.6-deb-1nodesource1) wird eingerichtet ...
                              bluez (5.50-1.2~deb10u2+rpt1) wird eingerichtet ...
                              Trigger für systemd (241-7~deb10u8+rpi1) werden verarbeitet ...
                              Trigger für man-db (2.8.5-2) werden verarbeitet ...
                              Trigger für dbus (1.12.20-0+deb10u1) werden verarbeitet ...
                              pi@ioBroker-RasPi4:/opt/iobroker/node_modules $
                              

                              soweit so gut...
                              nun weiter.

                              pi@ioBroker-RasPi4:/opt/iobroker/node_modules $ apt policy nodejs
                              nodejs:
                                Installiert:           14.17.6-deb-1nodesource1
                                Installationskandidat: 14.17.6-deb-1nodesource1
                                Versionstabelle:
                               *** 14.17.6-deb-1nodesource1 500
                                      500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
                                      100 /var/lib/dpkg/status
                                   10.24.0~dfsg-1~deb10u1 500
                                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                              pi@ioBroker-RasPi4:/opt/iobroker/node_modules $
                              

                              und jetzt die 14er Version installieren: (mit der 12er passiert das gleiche)

                              pi@ioBroker-RasPi4:/opt/iobroker/node_modules $ sudo apt reinstall nodejs=14.17.6-deb-1nodesource1
                              Paketlisten werden gelesen... Fertig
                              Abhängigkeitsbaum wird aufgebaut.
                              Statusinformationen werden eingelesen.... Fertig
                              0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
                              Es müssen 22,8 MB an Archiven heruntergeladen werden.
                              Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
                              Holen:1 https://deb.nodesource.com/node_14.x buster/main armhf nodejs armhf 14.17.6-deb-1nodesource1 [22,8 MB]
                              Es wurden 22,8 MB in 2 s geholt (10.000 kB/s).
                              (Lese Datenbank ... 61339 Dateien und Verzeichnisse sind derzeit installiert.)
                              Vorbereitung zum Entpacken von .../nodejs_14.17.6-deb-1nodesource1_armhf.deb ...
                              Entpacken von nodejs (14.17.6-deb-1nodesource1) über (14.17.6-deb-1nodesource1) ...
                              nodejs (14.17.6-deb-1nodesource1) wird eingerichtet ...
                              Trigger für man-db (2.8.5-2) werden verarbeitet ...
                              pi@ioBroker-RasPi4:/opt/iobroker/node_modules $
                              

                              Ergebnis ansehen:

                              pi@ioBroker-RasPi4:/opt/iobroker/node_modules $ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                              /usr/bin/nodejs
                              /usr/local/bin/node
                              /usr/local/bin/npm
                              v14.17.6
                              v14.17.5
                              6.14.14
                              Holen:1 https://deb.nodesource.com/node_12.x buster InRelease [4.584 B]
                              OK:2 https://deb.nodesource.com/node_14.x buster InRelease
                              Holen:3 http://archive.raspberrypi.org/debian buster InRelease [32,6 kB]
                              OK:4 https://packages.grafana.com/enterprise/deb stable InRelease
                              OK:5 http://raspbian.raspberrypi.org/raspbian buster InRelease
                              OK:6 https://repos.influxdata.com/debian buster InRelease
                              Holen:7 https://deb.nodesource.com/node_12.x buster/main armhf Packages [780 B]
                              Holen:8 http://archive.raspberrypi.org/debian buster/main armhf Packages [378 kB]
                              Es wurden 416 kB in 2 s geholt (185 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://packages.grafana.com/enterprise/deb stable InRelease
                              OK:4 https://deb.nodesource.com/node_12.x buster InRelease
                              OK:5 https://repos.influxdata.com/debian buster InRelease
                              OK:6 https://deb.nodesource.com/node_14.x buster InRelease
                              Paketlisten werden gelesen... Fertig
                              Abhängigkeitsbaum wird aufgebaut.
                              Statusinformationen werden eingelesen.... Fertig
                              Alle Pakete sind aktuell.
                              nodejs:
                                Installiert:           14.17.6-deb-1nodesource1
                                Installationskandidat: 14.17.6-deb-1nodesource1
                                Versionstabelle:
                               *** 14.17.6-deb-1nodesource1 500
                                      500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
                                      100 /var/lib/dpkg/status
                                   12.22.6-deb-1nodesource1 500
                                      500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                   10.24.0~dfsg-1~deb10u1 500
                                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                              

                              Gibt es etwas das ich übersehen haben könnte?
                              VG vsa

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

                                @vsa

                                Ja, du löschst den Kram nicht aus dem falschen Verzeichnis raus.

                                /usr/local/bin liegt früher im $PATH, deswegen wird eine dort liegende Version immer zuerst gefunden.
                                Muss also weg von dort.

                                Die v14.17.5 hast du mal irgendwie selber ins System geprügelt, die Version über apt wird schon richtig installiert. War sie schon immer. Hättest du gar nicht reinstallieren brauchen.

                                V 1 Reply Last reply Reply Quote 1
                                • V
                                  vsa @Thomas Braun last edited by

                                  @thomas-braun
                                  Danke für die Aufklärung. Das hat geholfen. Ich habe nodejs deinstalliert und die Verzeichnisse aus /usr/local/bin herausgelöscht.
                                  Danach bin ich frisch mit Deiner Anleitung rangegangen. Jetzt liegt alles in /usr/bin/.

                                  Dennoch, beim versuch iobroker zu updaten:

                                  pi@ioBroker-RasPi4:/opt/iobroker $ iobroker upgrade
                                  
                                  This upgrade of "vw-connect" will introduce the following changes:
                                  ==========================================================================
                                  -> 0.0.40:
                                  add climate v3 for newer cars. Add Powerpass and Seat Elli
                                  ==========================================================================
                                  
                                  Would you like to upgrade vw-connect from @0.0.39 to @0.0.40 now? [(y)es, (n)o]: y
                                  Update vw-connect from @0.0.39 to @0.0.40
                                  NPM version: 6.14.15
                                  npm install iobroker.vw-connect@0.0.40 --loglevel error --prefix "/opt/iobroker" (System call)
                                  npm ERR! code EINVALIDTAGNAME
                                  npm ERR! Invalid tag name "node_modules\tr-O64": Tags may not have any characters that encodeURIComponent encodes.
                                  
                                  npm ERR! A complete log of this run can be found in:
                                  npm ERR!     /home/iobroker/.npm/_logs/2021-08-31T21_18_53_993Z-debug.log
                                  upload [4] vw-connect.admin /opt/iobroker/node_modules/iobroker.vw-connect/admin/words.js words.js application/javascript
                                  upload [3] vw-connect.admin /opt/iobroker/node_modules/iobroker.vw-connect/admin/vw-connect.png vw-connect.png image/png
                                  upload [2] vw-connect.admin /opt/iobroker/node_modules/iobroker.vw-connect/admin/style.css style.css text/css
                                  upload [1] vw-connect.admin /opt/iobroker/node_modules/iobroker.vw-connect/admin/index_m.html index_m.html text/html
                                  upload [0] vw-connect.admin /opt/iobroker/node_modules/iobroker.vw-connect/admin/admin.d.ts admin.d.ts video/mp2t
                                  Adapter "vw-connect" updated
                                  

                                  Den Adapter tr-064 hatte ich ja schon rausgeschmissen.... 😕

                                  VG vsa

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

                                    @vsa Schau in der package.json nach dem Eintrag. Vorher Kopie anfertigen und ioBroker stoppen.

                                    Ich vermute, man kann den Eintrag dann löschen.

                                    Kannst aber auch mal nach der Meldung suchen, die hatten wir schonmal hier im Forum.

                                    1 Reply Last reply Reply Quote 1
                                    • V
                                      vsa last edited by

                                      @thomas-braun
                                      Vielen herzlichen Dank! Wieder einiges dazugelernt.
                                      Ich habe den entsprechenden Eintrag entfernt, danach kamen noch gyp ERR! Auch einen Tipp von Dir folgend habe ich den Terminal Adapter deinstalliert. Jetzt kann ich wieder updaten!
                                      Jetzt kann ich wieder ruhig schlafen 😉
                                      VG vsa

                                      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

                                      935
                                      Online

                                      31.9k
                                      Users

                                      80.1k
                                      Topics

                                      1.3m
                                      Posts

                                      5
                                      28
                                      2965
                                      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