Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] Node-Red Update auf v5.0.0 | Error

    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

    [gelöst] Node-Red Update auf v5.0.0 | Error

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

      Hallo zusammen,

      beim Update des Adapters Node-Red auf die Version 5.0.0 erhalte ich folgende Fehlermeldung:

      pi@iobroker-slave:~ $ iobroker upgrade node-red --debug
      
      This upgrade of "node-red" will introduce the following changes:
      ==========================================================================
      -> 5.0.0:
      *NodeJS 16.4.x is required**
      *Please check instance configuration and re-enter your passwords (encryption has changed).**
      
      Updated Node-RED to 3.1.0. Please check your nodes for compatibility!
      Admin 5/6 JSON config for instance configuration
      Added sendTo node with callback
      Allow custom attribute name for "ioBroker in" node
      Added option to select editor (monaco, ace)
      Added table for custom env vars to instance configuration
      ==========================================================================
      
      BE CAREFUL: THIS IS A MAJOR UPGRADE, WHICH WILL MOST LIKELY INTRODUCE BREAKING CHANGES!
      Would you like to upgrade node-red from @4.0.3 to @5.0.0 now? [(y)es, (n)o]: y
      Update node-red from @4.0.3 to @5.0.0
      host.iobroker-slave Adapter "system.adapter.node-red.0" is stopped.
      NPM version: 9.6.7
      Installing iobroker.node-red@5.0.0... (System call)
      npm ERR! code 1
      npm ERR! path /opt/iobroker/node_modules/bcrypt
      npm ERR! command failed
      npm ERR! command sh -c node-pre-gyp install --fallback-to-build
      npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1)
      npm ERR! node-pre-gyp info it worked if it ends with ok
      npm ERR! node-pre-gyp info using node-pre-gyp@1.0.11
      npm ERR! node-pre-gyp info using node@18.17.1 | linux | arm
      npm ERR! node-pre-gyp info check checked for "/opt/iobroker/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" (not found)
      npm ERR! node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-linux-arm-glibc.tar.gz
      npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-linux-arm-glibc.tar.gz 
      npm ERR! node-pre-gyp WARN Pre-built binaries not installable for bcrypt@5.1.1 and node@18.17.1 (node-v108 ABI, glibc) (falling back to source compile with node-gyp) 
      npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-linux-arm-glibc.tar.gz 
      npm ERR! node:internal/modules/cjs/loader:1080
      npm ERR!   throw err;
      npm ERR!   ^
      npm ERR! 
      npm ERR! Error: Cannot find module 'code-point-at'
      npm ERR! Require stack:
      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/string-width/index.js
      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/lib/wide-truncate.js
      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/lib/render-template.js
      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/lib/plumbing.js
      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/lib/index.js
      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/lib/log.js
      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
      npm ERR!     at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
      npm ERR!     at Module._load (node:internal/modules/cjs/loader:922:27)
      npm ERR!     at Module.require (node:internal/modules/cjs/loader:1143:19)
      npm ERR!     at require (node:internal/modules/cjs/helpers:121:18)
      npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/string-width/index.js:3:19)
      npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1256:14)
      npm ERR!     at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
      npm ERR!     at Module.load (node:internal/modules/cjs/loader:1119:32)
      npm ERR!     at Module._load (node:internal/modules/cjs/loader:960:12)
      npm ERR!     at Module.require (node:internal/modules/cjs/loader:1143:19) {
      npm ERR!   code: 'MODULE_NOT_FOUND',
      npm ERR!   requireStack: [
      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/string-width/index.js',
      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/lib/wide-truncate.js',
      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/lib/render-template.js',
      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/lib/plumbing.js',
      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/lib/index.js',
      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/lib/log.js',
      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
      npm ERR!   ]
      npm ERR! }
      npm ERR! 
      npm ERR! Node.js v18.17.1
      npm ERR! node-pre-gyp ERR! build error 
      npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1)
      npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/opt/iobroker/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
      npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
      npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1091:16)
      npm ERR! node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
      npm ERR! node-pre-gyp ERR! System Linux 5.10.103-v7l+
      npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
      npm ERR! node-pre-gyp ERR! cwd /opt/iobroker/node_modules/bcrypt
      npm ERR! node-pre-gyp ERR! node -v v18.17.1
      npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.11
      npm ERR! node-pre-gyp ERR! not ok
      
      npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-11-28T18_08_00_752Z-debug-0.log
      upload [15] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/bcrypt.min.js bcrypt.min.js application/javascript
      upload [14] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/de/translations.json i18n/de/translations.json application/json
      upload [13] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/en/translations.json i18n/en/translations.json application/json
      upload [12] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/es/translations.json i18n/es/translations.json application/json
      upload [11] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
      upload [10] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/it/translations.json i18n/it/translations.json application/json
      upload [9] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
      upload [8] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
      upload [7] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
      upload [6] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
      upload [5] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/uk/translations.json i18n/uk/translations.json application/json
      upload [4] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json
      upload [3] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/index.html index.html text/html
      upload [2] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/index_m.html index_m.html text/html
      upload [1] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/node-red.png node-red.png image/png
      upload [0] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/words.js words.js application/javascript
      host.iobroker-slave Adapter "system.adapter.node-red.0" is started
      

      Ich kann damit leider nichts anfangen. Kann mir jemad helfen?

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

        @dillio

        Offenbar ist dein nodejs zu alt.

        iob nodejs-update
        
        Dillio 1 Reply Last reply Reply Quote 0
        • Dillio
          Dillio @Thomas Braun last edited by

          @thomas-braun

          Laut System nicht:

          pi@iobroker-slave:~ $ nodejs -v
          v18.17.1
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Dillio last edited by

            @dillio

            Trotzdem nicht die aktuelle Version.

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

              @thomas-braun

              Wie bereits geschrieben, das System sagt was anderes:

              083e9e5e-a73c-4205-b30f-1b76f1d8c2ce-grafik.png

              Es wird mir auch kein Update hierfür angezeigt. Welche Version sollte es denn sein?

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

                @dillio

                18.18.2
                Update wie oben geschrieben

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

                  @thomas-braun

                  Du hattest Recht. Lag tatsächlich an der veralteten Nodejs Version. Ich habe es nach deiner Anleitung nochmal frisch neu installiert und dann ging es. Merkwürdig finde ich es aber trotzdem, dass mir dafür kein Update gezeigt wurde.

                  Naja, nun funktioniert wieder alles, danke! 🙂

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

                    @dillio sagte in Node-Red Update auf v5.0.0 | Error:

                    Merkwürdig finde ich es aber trotzdem, dass mir dafür kein Update gezeigt wurde.

                    Da war noch das veraltete Repository aktiv.
                    Aktuelles kommt nur noch über das aktuelle Repo rein.

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

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    936
                    Online

                    31.8k
                    Users

                    80.0k
                    Topics

                    1.3m
                    Posts

                    2
                    8
                    464
                    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