Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. [How-to] Node.js ioBroker richtig updaten-2021/22 Edition

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.4k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.0k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.5k

[How-to] Node.js ioBroker richtig updaten-2021/22 Edition

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
812 Beiträge 97 Kommentatoren 364.5k Aufrufe 83 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • DickenD Offline
    DickenD Offline
    Dicken
    schrieb am zuletzt editiert von
    #107

    Hey kann mir jemand weiterhelfen? bekomme beim Befehl

     sudo apt-get install -y nodejs
    

    immer folgende Fehlermeldung:

    dicken@iobroker-produktiv:~$ sudo apt-get install -y nodejs
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      gyp javascript-common libauthen-sasl-perl libc-ares2 libclone-perl
      libdata-dump-perl libencode-locale-perl libfile-basedir-perl
      libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl
      libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl
      libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
      libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
      libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl
      libio-stringy-perl libipc-system-simple-perl libjs-inherits
      libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer
      liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl
      libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl
      libssl-dev libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl
      libuv1-dev libwww-perl libwww-robotrules-perl libx11-protocol-perl
      libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl node-abbrev
      node-ajv node-ansi node-ansi-align node-ansi-regex node-ansi-styles
      node-ansistyles node-aproba node-archy node-are-we-there-yet node-asap
      node-asn1 node-assert-plus node-asynckit node-aws-sign2 node-aws4
      node-balanced-match node-bcrypt-pbkdf node-bl node-bluebird node-boxen
      node-brace-expansion node-builtin-modules node-builtins node-cacache
      node-call-limit node-camelcase node-caseless node-chalk node-chownr
      node-ci-info node-cli-boxes node-cliui node-clone node-co node-color-convert
      node-color-name node-colors node-columnify node-combined-stream
      node-concat-map node-concat-stream node-config-chain node-configstore
      node-console-control-strings node-copy-concurrently node-core-util-is
      node-cross-spawn node-crypto-random-string node-cyclist node-dashdash
      node-debbundle-es-to-primitive node-debug node-decamelize
      node-decompress-response node-deep-extend node-defaults
      node-define-properties node-delayed-stream node-delegates node-detect-indent
      node-detect-newline node-dot-prop node-duplexer3 node-duplexify
      node-ecc-jsbn node-editor node-encoding node-end-of-stream node-err-code
      node-errno node-es6-promise node-escape-string-regexp node-execa node-extend
      node-extsprintf node-fast-deep-equal node-find-up node-flush-write-stream
      node-forever-agent node-form-data node-from2 node-fs-vacuum
      node-fs-write-stream-atomic node-fs.realpath node-function-bind node-gauge
      node-genfun node-get-caller-file node-get-stream node-getpass node-glob
      node-got node-graceful-fs node-har-schema node-har-validator node-has-flag
      node-has-symbol-support-x node-has-to-string-tag-x node-has-unicode
      node-hosted-git-info node-http-signature node-iconv-lite node-iferr
      node-import-lazy node-imurmurhash node-inflight node-inherits node-ini
      node-invert-kv node-ip node-ip-regex node-is-npm node-is-obj node-is-object
      node-is-path-inside node-is-plain-obj node-is-retry-allowed node-is-stream
      node-is-typedarray node-isarray node-isexe node-isstream node-isurl
      node-jsbn node-json-parse-better-errors node-json-schema
      node-json-schema-traverse node-json-stable-stringify
      node-json-stringify-safe node-jsonify node-jsonparse node-jsonstream
      node-jsprim node-latest-version node-lazy-property node-lcid node-libnpx
      node-locate-path node-lockfile node-lodash node-lodash-packages
      node-lowercase-keys node-lru-cache node-make-dir node-mem node-mime
      node-mime-types node-mimic-fn node-mimic-response node-minimatch
      node-minimist node-mississippi node-mkdirp node-move-concurrently node-ms
      node-mute-stream node-nopt node-normalize-package-data node-npm-bundled
      node-npm-package-arg node-npm-run-path node-npmlog node-number-is-nan
      node-oauth-sign node-object-assign node-once node-opener node-os-locale
      node-os-tmpdir node-osenv node-p-cancelable node-p-finally node-p-is-promise
      node-p-limit node-p-locate node-p-timeout node-package-json
      node-parallel-transform node-path-exists node-path-is-absolute
      node-path-is-inside node-performance-now node-pify node-prepend-http
      node-process-nextick-args node-promise-inflight node-promise-retry
      node-promzard node-proto-list node-prr node-pseudomap node-psl node-pump
      node-pumpify node-punycode node-qs node-qw node-rc node-read
      node-read-package-json node-readable-stream node-registry-auth-token
      node-registry-url node-request node-require-directory
      node-require-main-filename node-resolve node-resolve-from node-retry
      node-rimraf node-run-queue node-safe-buffer node-semver node-semver-diff
      node-set-blocking node-sha node-shebang-command node-shebang-regex
      node-signal-exit node-slash node-slide node-sorted-object node-spdx-correct
      node-spdx-exceptions node-spdx-expression-parse node-spdx-license-ids
      node-sshpk node-ssri node-stream-each node-stream-iterate node-stream-shift
      node-strict-uri-encode node-string-decoder node-string-width node-strip-ansi
      node-strip-eof node-strip-json-comments node-supports-color node-tar
      node-term-size node-text-table node-through node-through2 node-timed-out
      node-tough-cookie node-tunnel-agent node-tweetnacl node-typedarray
      node-typedarray-to-buffer node-uid-number node-unique-filename
      node-unique-string node-unpipe node-uri-js node-url-parse-lax
      node-url-to-options node-util-deprecate node-uuid
      node-validate-npm-package-license node-validate-npm-package-name node-verror
      node-wcwidth.js node-which node-which-module node-wide-align
      node-widest-line node-wrap-ansi node-wrappy node-write-file-atomic
      node-xdg-basedir node-xtend node-y18n node-yallist node-yargs
      node-yargs-parser nodejs-doc perl-openssl-defaults xdg-utils
    Use 'sudo apt autoremove' to remove them.
    The following packages will be upgraded:
      nodejs
    1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/18.0 MB of archives.
    After this operation, 93.5 MB of additional disk space will be used.
    (Reading database ... 39050 files and directories currently installed.)
    Preparing to unpack .../nodejs_12.22.7-deb-1nodesource1_amd64.deb ...
    Unpacking nodejs (12.22.7-deb-1nodesource1) over (12.18.2~dfsg-1ubuntu2) ...
    dpkg: error processing archive /var/cache/apt/archives/nodejs_12.22.7-deb-1nodesource1_amd64.deb (--unpack):
     trying to overwrite '/usr/share/doc/nodejs/api/tty.json.gz', which is also in package nodejs-doc 12.18.2~dfsg-1ubuntu2
    dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
    Errors were encountered while processing:
     /var/cache/apt/archives/nodejs_12.22.7-deb-1nodesource1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    

    Infos die vllt benötigt werden:

    dicken@iobroker-produktiv:~$ node -v
    v12.20.0
    dicken@iobroker-produktiv:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 20.10
    Release:        20.10
    Codename:       groovy
    dicken@iobroker-produktiv:~$ npm -v
    6.14.8
    
    Thomas BraunT 1 Antwort Letzte Antwort
    0
    • DickenD Dicken

      Hey kann mir jemand weiterhelfen? bekomme beim Befehl

       sudo apt-get install -y nodejs
      

      immer folgende Fehlermeldung:

      dicken@iobroker-produktiv:~$ sudo apt-get install -y nodejs
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages were automatically installed and are no longer required:
        gyp javascript-common libauthen-sasl-perl libc-ares2 libclone-perl
        libdata-dump-perl libencode-locale-perl libfile-basedir-perl
        libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl
        libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl
        libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
        libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
        libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl
        libio-stringy-perl libipc-system-simple-perl libjs-inherits
        libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer
        liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl
        libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl
        libssl-dev libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl
        libuv1-dev libwww-perl libwww-robotrules-perl libx11-protocol-perl
        libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl node-abbrev
        node-ajv node-ansi node-ansi-align node-ansi-regex node-ansi-styles
        node-ansistyles node-aproba node-archy node-are-we-there-yet node-asap
        node-asn1 node-assert-plus node-asynckit node-aws-sign2 node-aws4
        node-balanced-match node-bcrypt-pbkdf node-bl node-bluebird node-boxen
        node-brace-expansion node-builtin-modules node-builtins node-cacache
        node-call-limit node-camelcase node-caseless node-chalk node-chownr
        node-ci-info node-cli-boxes node-cliui node-clone node-co node-color-convert
        node-color-name node-colors node-columnify node-combined-stream
        node-concat-map node-concat-stream node-config-chain node-configstore
        node-console-control-strings node-copy-concurrently node-core-util-is
        node-cross-spawn node-crypto-random-string node-cyclist node-dashdash
        node-debbundle-es-to-primitive node-debug node-decamelize
        node-decompress-response node-deep-extend node-defaults
        node-define-properties node-delayed-stream node-delegates node-detect-indent
        node-detect-newline node-dot-prop node-duplexer3 node-duplexify
        node-ecc-jsbn node-editor node-encoding node-end-of-stream node-err-code
        node-errno node-es6-promise node-escape-string-regexp node-execa node-extend
        node-extsprintf node-fast-deep-equal node-find-up node-flush-write-stream
        node-forever-agent node-form-data node-from2 node-fs-vacuum
        node-fs-write-stream-atomic node-fs.realpath node-function-bind node-gauge
        node-genfun node-get-caller-file node-get-stream node-getpass node-glob
        node-got node-graceful-fs node-har-schema node-har-validator node-has-flag
        node-has-symbol-support-x node-has-to-string-tag-x node-has-unicode
        node-hosted-git-info node-http-signature node-iconv-lite node-iferr
        node-import-lazy node-imurmurhash node-inflight node-inherits node-ini
        node-invert-kv node-ip node-ip-regex node-is-npm node-is-obj node-is-object
        node-is-path-inside node-is-plain-obj node-is-retry-allowed node-is-stream
        node-is-typedarray node-isarray node-isexe node-isstream node-isurl
        node-jsbn node-json-parse-better-errors node-json-schema
        node-json-schema-traverse node-json-stable-stringify
        node-json-stringify-safe node-jsonify node-jsonparse node-jsonstream
        node-jsprim node-latest-version node-lazy-property node-lcid node-libnpx
        node-locate-path node-lockfile node-lodash node-lodash-packages
        node-lowercase-keys node-lru-cache node-make-dir node-mem node-mime
        node-mime-types node-mimic-fn node-mimic-response node-minimatch
        node-minimist node-mississippi node-mkdirp node-move-concurrently node-ms
        node-mute-stream node-nopt node-normalize-package-data node-npm-bundled
        node-npm-package-arg node-npm-run-path node-npmlog node-number-is-nan
        node-oauth-sign node-object-assign node-once node-opener node-os-locale
        node-os-tmpdir node-osenv node-p-cancelable node-p-finally node-p-is-promise
        node-p-limit node-p-locate node-p-timeout node-package-json
        node-parallel-transform node-path-exists node-path-is-absolute
        node-path-is-inside node-performance-now node-pify node-prepend-http
        node-process-nextick-args node-promise-inflight node-promise-retry
        node-promzard node-proto-list node-prr node-pseudomap node-psl node-pump
        node-pumpify node-punycode node-qs node-qw node-rc node-read
        node-read-package-json node-readable-stream node-registry-auth-token
        node-registry-url node-request node-require-directory
        node-require-main-filename node-resolve node-resolve-from node-retry
        node-rimraf node-run-queue node-safe-buffer node-semver node-semver-diff
        node-set-blocking node-sha node-shebang-command node-shebang-regex
        node-signal-exit node-slash node-slide node-sorted-object node-spdx-correct
        node-spdx-exceptions node-spdx-expression-parse node-spdx-license-ids
        node-sshpk node-ssri node-stream-each node-stream-iterate node-stream-shift
        node-strict-uri-encode node-string-decoder node-string-width node-strip-ansi
        node-strip-eof node-strip-json-comments node-supports-color node-tar
        node-term-size node-text-table node-through node-through2 node-timed-out
        node-tough-cookie node-tunnel-agent node-tweetnacl node-typedarray
        node-typedarray-to-buffer node-uid-number node-unique-filename
        node-unique-string node-unpipe node-uri-js node-url-parse-lax
        node-url-to-options node-util-deprecate node-uuid
        node-validate-npm-package-license node-validate-npm-package-name node-verror
        node-wcwidth.js node-which node-which-module node-wide-align
        node-widest-line node-wrap-ansi node-wrappy node-write-file-atomic
        node-xdg-basedir node-xtend node-y18n node-yallist node-yargs
        node-yargs-parser nodejs-doc perl-openssl-defaults xdg-utils
      Use 'sudo apt autoremove' to remove them.
      The following packages will be upgraded:
        nodejs
      1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      Need to get 0 B/18.0 MB of archives.
      After this operation, 93.5 MB of additional disk space will be used.
      (Reading database ... 39050 files and directories currently installed.)
      Preparing to unpack .../nodejs_12.22.7-deb-1nodesource1_amd64.deb ...
      Unpacking nodejs (12.22.7-deb-1nodesource1) over (12.18.2~dfsg-1ubuntu2) ...
      dpkg: error processing archive /var/cache/apt/archives/nodejs_12.22.7-deb-1nodesource1_amd64.deb (--unpack):
       trying to overwrite '/usr/share/doc/nodejs/api/tty.json.gz', which is also in package nodejs-doc 12.18.2~dfsg-1ubuntu2
      dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
      Errors were encountered while processing:
       /var/cache/apt/archives/nodejs_12.22.7-deb-1nodesource1_amd64.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      
      

      Infos die vllt benötigt werden:

      dicken@iobroker-produktiv:~$ node -v
      v12.20.0
      dicken@iobroker-produktiv:~$ lsb_release -a
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description:    Ubuntu 20.10
      Release:        20.10
      Codename:       groovy
      dicken@iobroker-produktiv:~$ npm -v
      6.14.8
      
      Thomas BraunT Online
      Thomas BraunT Online
      Thomas Braun
      Most Active
      schrieb am zuletzt editiert von
      #108

      @dicken
      Da hast du mal das debian/ubuntu-eigene node installiert gehabt.
      Aufräumen:

      sudo apt autoremove
      sudo apt remove node*
      sudo apt update
      sudo apt install nodejs
      

      Linux-Werkzeugkasten:
      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
      NodeJS Fixer Skript:
      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

      DickenD 1 Antwort Letzte Antwort
      0
      • Thomas BraunT Thomas Braun

        @dicken
        Da hast du mal das debian/ubuntu-eigene node installiert gehabt.
        Aufräumen:

        sudo apt autoremove
        sudo apt remove node*
        sudo apt update
        sudo apt install nodejs
        
        DickenD Offline
        DickenD Offline
        Dicken
        schrieb am zuletzt editiert von
        #109

        @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

        sudo apt autoremove

        Hey, direkt beim ersten Befehl bekomm ich schon die Meldung:

        dicken@iobroker-produktiv:~$ sudo apt autoremove
        [sudo] password for dicken:
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        You might want to run 'apt --fix-broken install' to correct these.
        The following packages have unmet dependencies:
         nodejs : Depends: libnode72 (= 12.18.2~dfsg-1ubuntu2) but it is not installed
        E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
        
        
        Thomas BraunT 1 Antwort Letzte Antwort
        0
        • DickenD Dicken

          @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

          sudo apt autoremove

          Hey, direkt beim ersten Befehl bekomm ich schon die Meldung:

          dicken@iobroker-produktiv:~$ sudo apt autoremove
          [sudo] password for dicken:
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          You might want to run 'apt --fix-broken install' to correct these.
          The following packages have unmet dependencies:
           nodejs : Depends: libnode72 (= 12.18.2~dfsg-1ubuntu2) but it is not installed
          E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
          
          
          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          schrieb am zuletzt editiert von
          #110

          @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

          sudo apt --fix-broken install
          

          Dann nochmal wie oben.

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          DickenD 1 Antwort Letzte Antwort
          0
          • Thomas BraunT Thomas Braun

            @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

            sudo apt --fix-broken install
            

            Dann nochmal wie oben.

            DickenD Offline
            DickenD Offline
            Dicken
            schrieb am zuletzt editiert von
            #111

            @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

            @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

            sudo apt --fix-broken install
            

            Dann nochmal wie oben.

            Das geht leider auch nich:

            dicken@iobroker-produktiv:~$ sudo apt --fix-broken install
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            Correcting dependencies... Done
            The following packages were automatically installed and are no longer required:
              gyp javascript-common libauthen-sasl-perl libc-ares2 libclone-perl
              libdata-dump-perl libencode-locale-perl libfile-basedir-perl
              libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl
              libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl
              libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
              libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
              libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl
              libio-stringy-perl libipc-system-simple-perl libjs-inherits
              libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer
              liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl
              libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl
              libssl-dev libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl
              libuv1-dev libwww-perl libwww-robotrules-perl libx11-protocol-perl
              libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl node-abbrev
              node-ajv node-ansi node-ansi-align node-ansi-regex node-ansi-styles
              node-ansistyles node-aproba node-archy node-are-we-there-yet node-asap
              node-asn1 node-assert-plus node-asynckit node-aws-sign2 node-aws4
              node-balanced-match node-bcrypt-pbkdf node-bl node-bluebird node-boxen
              node-brace-expansion node-builtin-modules node-builtins node-cacache
              node-call-limit node-camelcase node-caseless node-chalk node-chownr
              node-ci-info node-cli-boxes node-cliui node-clone node-co node-color-convert
              node-color-name node-colors node-columnify node-combined-stream
              node-concat-map node-concat-stream node-config-chain node-configstore
              node-console-control-strings node-copy-concurrently node-core-util-is
              node-cross-spawn node-crypto-random-string node-cyclist node-dashdash
              node-debbundle-es-to-primitive node-debug node-decamelize
              node-decompress-response node-deep-extend node-defaults
              node-define-properties node-delayed-stream node-delegates node-detect-indent
              node-detect-newline node-dot-prop node-duplexer3 node-duplexify
              node-ecc-jsbn node-editor node-encoding node-end-of-stream node-err-code
              node-errno node-es6-promise node-escape-string-regexp node-execa node-extend
              node-extsprintf node-fast-deep-equal node-find-up node-flush-write-stream
              node-forever-agent node-form-data node-from2 node-fs-vacuum
              node-fs-write-stream-atomic node-fs.realpath node-function-bind node-gauge
              node-genfun node-get-caller-file node-get-stream node-getpass node-glob
              node-got node-graceful-fs node-har-schema node-har-validator node-has-flag
              node-has-symbol-support-x node-has-to-string-tag-x node-has-unicode
              node-hosted-git-info node-http-signature node-iconv-lite node-iferr
              node-import-lazy node-imurmurhash node-inflight node-inherits node-ini
              node-invert-kv node-ip node-ip-regex node-is-npm node-is-obj node-is-object
              node-is-path-inside node-is-plain-obj node-is-retry-allowed node-is-stream
              node-is-typedarray node-isarray node-isexe node-isstream node-isurl
              node-jsbn node-json-parse-better-errors node-json-schema
              node-json-schema-traverse node-json-stable-stringify
              node-json-stringify-safe node-jsonify node-jsonparse node-jsonstream
              node-jsprim node-latest-version node-lazy-property node-lcid node-libnpx
              node-locate-path node-lockfile node-lodash node-lodash-packages
              node-lowercase-keys node-lru-cache node-make-dir node-mem node-mime
              node-mime-types node-mimic-fn node-mimic-response node-minimatch
              node-minimist node-mississippi node-mkdirp node-move-concurrently node-ms
              node-mute-stream node-nopt node-normalize-package-data node-npm-bundled
              node-npm-package-arg node-npm-run-path node-npmlog node-number-is-nan
              node-oauth-sign node-object-assign node-once node-opener node-os-locale
              node-os-tmpdir node-osenv node-p-cancelable node-p-finally node-p-is-promise
              node-p-limit node-p-locate node-p-timeout node-package-json
              node-parallel-transform node-path-exists node-path-is-absolute
              node-path-is-inside node-performance-now node-pify node-prepend-http
              node-process-nextick-args node-promise-inflight node-promise-retry
              node-promzard node-proto-list node-prr node-pseudomap node-psl node-pump
              node-pumpify node-punycode node-qs node-qw node-rc node-read
              node-read-package-json node-readable-stream node-registry-auth-token
              node-registry-url node-request node-require-directory
              node-require-main-filename node-resolve node-resolve-from node-retry
              node-rimraf node-run-queue node-safe-buffer node-semver node-semver-diff
              node-set-blocking node-sha node-shebang-command node-shebang-regex
              node-signal-exit node-slash node-slide node-sorted-object node-spdx-correct
              node-spdx-exceptions node-spdx-expression-parse node-spdx-license-ids
              node-sshpk node-ssri node-stream-each node-stream-iterate node-stream-shift
              node-strict-uri-encode node-string-decoder node-string-width node-strip-ansi
              node-strip-eof node-strip-json-comments node-supports-color node-tar
              node-term-size node-text-table node-through node-through2 node-timed-out
              node-tough-cookie node-tunnel-agent node-tweetnacl node-typedarray
              node-typedarray-to-buffer node-uid-number node-unique-filename
              node-unique-string node-unpipe node-uri-js node-url-parse-lax
              node-url-to-options node-util-deprecate node-uuid
              node-validate-npm-package-license node-validate-npm-package-name node-verror
              node-wcwidth.js node-which node-which-module node-wide-align
              node-widest-line node-wrap-ansi node-wrappy node-write-file-atomic
              node-xdg-basedir node-xtend node-y18n node-yallist node-yargs
              node-yargs-parser nodejs-doc perl-openssl-defaults xdg-utils
            Use 'sudo apt autoremove' to remove them.
            The following additional packages will be installed:
              nodejs
            The following packages will be upgraded:
              nodejs
            1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
            Need to get 0 B/18.0 MB of archives.
            After this operation, 93.5 MB of additional disk space will be used.
            Do you want to continue? [Y/n] Y
            (Reading database ... 39050 files and directories currently installed.)
            Preparing to unpack .../nodejs_12.22.7-deb-1nodesource1_amd64.deb ...
            Unpacking nodejs (12.22.7-deb-1nodesource1) over (12.18.2~dfsg-1ubuntu2) ...
            dpkg: error processing archive /var/cache/apt/archives/nodejs_12.22.7-deb-1nodesource1_amd64.deb (--unpack):
             trying to overwrite '/usr/share/doc/nodejs/api/tty.json.gz', which is also in package nodejs-doc 12.18.2~dfsg-1ubuntu2
            dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
            Errors were encountered while processing:
             /var/cache/apt/archives/nodejs_12.22.7-deb-1nodesource1_amd64.deb
            E: Sub-process /usr/bin/dpkg returned an error code (1)
            
            
            Thomas BraunT 1 Antwort Letzte Antwort
            0
            • DickenD Dicken

              @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

              @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

              sudo apt --fix-broken install
              

              Dann nochmal wie oben.

              Das geht leider auch nich:

              dicken@iobroker-produktiv:~$ sudo apt --fix-broken install
              Reading package lists... Done
              Building dependency tree
              Reading state information... Done
              Correcting dependencies... Done
              The following packages were automatically installed and are no longer required:
                gyp javascript-common libauthen-sasl-perl libc-ares2 libclone-perl
                libdata-dump-perl libencode-locale-perl libfile-basedir-perl
                libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl
                libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl
                libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
                libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
                libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl
                libio-stringy-perl libipc-system-simple-perl libjs-inherits
                libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer
                liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl
                libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl
                libssl-dev libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl
                libuv1-dev libwww-perl libwww-robotrules-perl libx11-protocol-perl
                libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl node-abbrev
                node-ajv node-ansi node-ansi-align node-ansi-regex node-ansi-styles
                node-ansistyles node-aproba node-archy node-are-we-there-yet node-asap
                node-asn1 node-assert-plus node-asynckit node-aws-sign2 node-aws4
                node-balanced-match node-bcrypt-pbkdf node-bl node-bluebird node-boxen
                node-brace-expansion node-builtin-modules node-builtins node-cacache
                node-call-limit node-camelcase node-caseless node-chalk node-chownr
                node-ci-info node-cli-boxes node-cliui node-clone node-co node-color-convert
                node-color-name node-colors node-columnify node-combined-stream
                node-concat-map node-concat-stream node-config-chain node-configstore
                node-console-control-strings node-copy-concurrently node-core-util-is
                node-cross-spawn node-crypto-random-string node-cyclist node-dashdash
                node-debbundle-es-to-primitive node-debug node-decamelize
                node-decompress-response node-deep-extend node-defaults
                node-define-properties node-delayed-stream node-delegates node-detect-indent
                node-detect-newline node-dot-prop node-duplexer3 node-duplexify
                node-ecc-jsbn node-editor node-encoding node-end-of-stream node-err-code
                node-errno node-es6-promise node-escape-string-regexp node-execa node-extend
                node-extsprintf node-fast-deep-equal node-find-up node-flush-write-stream
                node-forever-agent node-form-data node-from2 node-fs-vacuum
                node-fs-write-stream-atomic node-fs.realpath node-function-bind node-gauge
                node-genfun node-get-caller-file node-get-stream node-getpass node-glob
                node-got node-graceful-fs node-har-schema node-har-validator node-has-flag
                node-has-symbol-support-x node-has-to-string-tag-x node-has-unicode
                node-hosted-git-info node-http-signature node-iconv-lite node-iferr
                node-import-lazy node-imurmurhash node-inflight node-inherits node-ini
                node-invert-kv node-ip node-ip-regex node-is-npm node-is-obj node-is-object
                node-is-path-inside node-is-plain-obj node-is-retry-allowed node-is-stream
                node-is-typedarray node-isarray node-isexe node-isstream node-isurl
                node-jsbn node-json-parse-better-errors node-json-schema
                node-json-schema-traverse node-json-stable-stringify
                node-json-stringify-safe node-jsonify node-jsonparse node-jsonstream
                node-jsprim node-latest-version node-lazy-property node-lcid node-libnpx
                node-locate-path node-lockfile node-lodash node-lodash-packages
                node-lowercase-keys node-lru-cache node-make-dir node-mem node-mime
                node-mime-types node-mimic-fn node-mimic-response node-minimatch
                node-minimist node-mississippi node-mkdirp node-move-concurrently node-ms
                node-mute-stream node-nopt node-normalize-package-data node-npm-bundled
                node-npm-package-arg node-npm-run-path node-npmlog node-number-is-nan
                node-oauth-sign node-object-assign node-once node-opener node-os-locale
                node-os-tmpdir node-osenv node-p-cancelable node-p-finally node-p-is-promise
                node-p-limit node-p-locate node-p-timeout node-package-json
                node-parallel-transform node-path-exists node-path-is-absolute
                node-path-is-inside node-performance-now node-pify node-prepend-http
                node-process-nextick-args node-promise-inflight node-promise-retry
                node-promzard node-proto-list node-prr node-pseudomap node-psl node-pump
                node-pumpify node-punycode node-qs node-qw node-rc node-read
                node-read-package-json node-readable-stream node-registry-auth-token
                node-registry-url node-request node-require-directory
                node-require-main-filename node-resolve node-resolve-from node-retry
                node-rimraf node-run-queue node-safe-buffer node-semver node-semver-diff
                node-set-blocking node-sha node-shebang-command node-shebang-regex
                node-signal-exit node-slash node-slide node-sorted-object node-spdx-correct
                node-spdx-exceptions node-spdx-expression-parse node-spdx-license-ids
                node-sshpk node-ssri node-stream-each node-stream-iterate node-stream-shift
                node-strict-uri-encode node-string-decoder node-string-width node-strip-ansi
                node-strip-eof node-strip-json-comments node-supports-color node-tar
                node-term-size node-text-table node-through node-through2 node-timed-out
                node-tough-cookie node-tunnel-agent node-tweetnacl node-typedarray
                node-typedarray-to-buffer node-uid-number node-unique-filename
                node-unique-string node-unpipe node-uri-js node-url-parse-lax
                node-url-to-options node-util-deprecate node-uuid
                node-validate-npm-package-license node-validate-npm-package-name node-verror
                node-wcwidth.js node-which node-which-module node-wide-align
                node-widest-line node-wrap-ansi node-wrappy node-write-file-atomic
                node-xdg-basedir node-xtend node-y18n node-yallist node-yargs
                node-yargs-parser nodejs-doc perl-openssl-defaults xdg-utils
              Use 'sudo apt autoremove' to remove them.
              The following additional packages will be installed:
                nodejs
              The following packages will be upgraded:
                nodejs
              1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
              Need to get 0 B/18.0 MB of archives.
              After this operation, 93.5 MB of additional disk space will be used.
              Do you want to continue? [Y/n] Y
              (Reading database ... 39050 files and directories currently installed.)
              Preparing to unpack .../nodejs_12.22.7-deb-1nodesource1_amd64.deb ...
              Unpacking nodejs (12.22.7-deb-1nodesource1) over (12.18.2~dfsg-1ubuntu2) ...
              dpkg: error processing archive /var/cache/apt/archives/nodejs_12.22.7-deb-1nodesource1_amd64.deb (--unpack):
               trying to overwrite '/usr/share/doc/nodejs/api/tty.json.gz', which is also in package nodejs-doc 12.18.2~dfsg-1ubuntu2
              dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
              Errors were encountered while processing:
               /var/cache/apt/archives/nodejs_12.22.7-deb-1nodesource1_amd64.deb
              E: Sub-process /usr/bin/dpkg returned an error code (1)
              
              
              Thomas BraunT Online
              Thomas BraunT Online
              Thomas Braun
              Most Active
              schrieb am zuletzt editiert von
              #112

              @dicken

              sudo apt remove node*
              

              Linux-Werkzeugkasten:
              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
              NodeJS Fixer Skript:
              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

              DickenD 1 Antwort Letzte Antwort
              0
              • Thomas BraunT Thomas Braun

                @dicken

                sudo apt remove node*
                
                DickenD Offline
                DickenD Offline
                Dicken
                schrieb am zuletzt editiert von
                #113

                @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                @dicken

                sudo apt remove node*
                

                Jetzt hat es geklappt aber irgendwie hab ich trotzdem noch die alte Node Version:

                dicken@iobroker-produktiv:~$ curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                
                ## Installing the NodeSource Node.js 12.x repo...
                
                
                ## Populating apt-get cache...
                
                + apt-get update
                Hit:1 https://deb.nodesource.com/node_12.x groovy InRelease
                Hit:2 http://archive.ubuntu.com/ubuntu groovy InRelease
                Hit:3 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
                Hit:4 http://archive.ubuntu.com/ubuntu groovy-security InRelease
                Reading package lists... Done
                
                ## Confirming "groovy" is supported...
                
                + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_12.x/dists/groovy/Release'
                
                ## Adding the NodeSource signing key to your keyring...
                
                + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
                
                ## Creating apt sources list file for the NodeSource Node.js 12.x repo...
                
                + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x groovy main' > /etc/apt/sources.list.d/nodesource.list
                + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x groovy main' >> /etc/apt/sources.list.d/nodesource.list
                
                ## Running `apt-get update` for you...
                
                + apt-get update
                Hit:1 http://archive.ubuntu.com/ubuntu groovy InRelease
                Hit:2 https://deb.nodesource.com/node_12.x groovy InRelease
                Hit:3 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
                Hit:4 http://archive.ubuntu.com/ubuntu groovy-security InRelease
                Reading package lists... Done
                
                ## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm
                ## You may also need development tools to build native addons:
                     sudo apt-get install gcc g++ make
                ## To install the Yarn package manager, run:
                     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
                     echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
                     sudo apt-get update && sudo apt-get install yarn
                
                
                dicken@iobroker-produktiv:~$ sudo apt-get install -y nodejs
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                nodejs is already the newest version (12.22.7-deb-1nodesource1).
                The following packages were automatically installed and are no longer required:
                  gyp javascript-common libauthen-sasl-perl libc-ares2 libclone-perl
                  libdata-dump-perl libencode-locale-perl libfile-basedir-perl
                  libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl
                  libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl
                  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
                  libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
                  libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl
                  libio-stringy-perl libipc-system-simple-perl libjs-inherits
                  libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer
                  liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl
                  libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl
                  libssl-dev libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl
                  libuv1-dev libwww-perl libwww-robotrules-perl libx11-protocol-perl
                  libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl
                  perl-openssl-defaults xdg-utils
                Use 'sudo apt autoremove' to remove them.
                0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                dicken@iobroker-produktiv:~$ node -v                                           
                 v12.20.0
                
                
                Thomas BraunT 1 Antwort Letzte Antwort
                0
                • DickenD Dicken

                  @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                  @dicken

                  sudo apt remove node*
                  

                  Jetzt hat es geklappt aber irgendwie hab ich trotzdem noch die alte Node Version:

                  dicken@iobroker-produktiv:~$ curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                  
                  ## Installing the NodeSource Node.js 12.x repo...
                  
                  
                  ## Populating apt-get cache...
                  
                  + apt-get update
                  Hit:1 https://deb.nodesource.com/node_12.x groovy InRelease
                  Hit:2 http://archive.ubuntu.com/ubuntu groovy InRelease
                  Hit:3 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
                  Hit:4 http://archive.ubuntu.com/ubuntu groovy-security InRelease
                  Reading package lists... Done
                  
                  ## Confirming "groovy" is supported...
                  
                  + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_12.x/dists/groovy/Release'
                  
                  ## Adding the NodeSource signing key to your keyring...
                  
                  + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
                  
                  ## Creating apt sources list file for the NodeSource Node.js 12.x repo...
                  
                  + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x groovy main' > /etc/apt/sources.list.d/nodesource.list
                  + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x groovy main' >> /etc/apt/sources.list.d/nodesource.list
                  
                  ## Running `apt-get update` for you...
                  
                  + apt-get update
                  Hit:1 http://archive.ubuntu.com/ubuntu groovy InRelease
                  Hit:2 https://deb.nodesource.com/node_12.x groovy InRelease
                  Hit:3 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
                  Hit:4 http://archive.ubuntu.com/ubuntu groovy-security InRelease
                  Reading package lists... Done
                  
                  ## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm
                  ## You may also need development tools to build native addons:
                       sudo apt-get install gcc g++ make
                  ## To install the Yarn package manager, run:
                       curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
                       echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
                       sudo apt-get update && sudo apt-get install yarn
                  
                  
                  dicken@iobroker-produktiv:~$ sudo apt-get install -y nodejs
                  Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  nodejs is already the newest version (12.22.7-deb-1nodesource1).
                  The following packages were automatically installed and are no longer required:
                    gyp javascript-common libauthen-sasl-perl libc-ares2 libclone-perl
                    libdata-dump-perl libencode-locale-perl libfile-basedir-perl
                    libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl
                    libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl
                    libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
                    libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
                    libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl
                    libio-stringy-perl libipc-system-simple-perl libjs-inherits
                    libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer
                    liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl
                    libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl
                    libssl-dev libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl
                    libuv1-dev libwww-perl libwww-robotrules-perl libx11-protocol-perl
                    libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl
                    perl-openssl-defaults xdg-utils
                  Use 'sudo apt autoremove' to remove them.
                  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                  dicken@iobroker-produktiv:~$ node -v                                           
                   v12.20.0
                  
                  
                  Thomas BraunT Online
                  Thomas BraunT Online
                  Thomas Braun
                  Most Active
                  schrieb am zuletzt editiert von
                  #114

                  @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                  sudo apt autoremove
                  sudo apt remove node*
                  sudo apt update
                  sudo apt policy nodejs
                  

                  Linux-Werkzeugkasten:
                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                  NodeJS Fixer Skript:
                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                  DickenD 1 Antwort Letzte Antwort
                  0
                  • Thomas BraunT Thomas Braun

                    @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                    sudo apt autoremove
                    sudo apt remove node*
                    sudo apt update
                    sudo apt policy nodejs
                    
                    DickenD Offline
                    DickenD Offline
                    Dicken
                    schrieb am zuletzt editiert von
                    #115

                    @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                    @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                    sudo apt autoremove
                    sudo apt remove node*
                    sudo apt update
                    sudo apt policy nodejs
                    

                    läuft alles wunderbar durch aber node -v sagt was von v12.20.0

                    dicken@iobroker-produktiv:~$ sudo apt policy nodejs
                    nodejs:
                      Installed: (none)
                      Candidate: 12.22.7-deb-1nodesource1
                      Version table:
                         12.22.7-deb-1nodesource1 500
                            500 https://deb.nodesource.com/node_12.x groovy/main amd64 Packages
                         12.18.2~dfsg-1ubuntu2 500
                            500 http://archive.ubuntu.com/ubuntu groovy/universe amd64 Packages
                    dicken@iobroker-produktiv:~$ node -v
                    v12.20.0
                    
                    
                    Thomas BraunT 1 Antwort Letzte Antwort
                    0
                    • DickenD Dicken

                      @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                      @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                      sudo apt autoremove
                      sudo apt remove node*
                      sudo apt update
                      sudo apt policy nodejs
                      

                      läuft alles wunderbar durch aber node -v sagt was von v12.20.0

                      dicken@iobroker-produktiv:~$ sudo apt policy nodejs
                      nodejs:
                        Installed: (none)
                        Candidate: 12.22.7-deb-1nodesource1
                        Version table:
                           12.22.7-deb-1nodesource1 500
                              500 https://deb.nodesource.com/node_12.x groovy/main amd64 Packages
                           12.18.2~dfsg-1ubuntu2 500
                              500 http://archive.ubuntu.com/ubuntu groovy/universe amd64 Packages
                      dicken@iobroker-produktiv:~$ node -v
                      v12.20.0
                      
                      
                      Thomas BraunT Online
                      Thomas BraunT Online
                      Thomas Braun
                      Most Active
                      schrieb am zuletzt editiert von Thomas Braun
                      #116

                      @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                      nodejs: Installed: (none)

                      Das ist nicht installiert.

                      sudo apt install nodejs
                      

                      Und du musst da auch noch von Hand dran rumgefrickelt haben.
                      v12.20.0 kann nicht über ein Repo gekommen sein.

                      Test:

                      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
                      
                      

                      Linux-Werkzeugkasten:
                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                      NodeJS Fixer Skript:
                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                      DickenD 2 Antworten Letzte Antwort
                      0
                      • Thomas BraunT Thomas Braun

                        @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                        nodejs: Installed: (none)

                        Das ist nicht installiert.

                        sudo apt install nodejs
                        

                        Und du musst da auch noch von Hand dran rumgefrickelt haben.
                        v12.20.0 kann nicht über ein Repo gekommen sein.

                        Test:

                        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
                        
                        
                        DickenD Offline
                        DickenD Offline
                        Dicken
                        schrieb am zuletzt editiert von
                        #117

                        @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                        Und du musst da auch noch von Hand dran rumgefrickelt haben.
                        v12.20.0 kann nicht über ein Repo gekommen sein.

                        Ja das mag sein, zu meinen Anfängen mit iobroker.

                        dicken@iobroker-produktiv:~$ sudo apt install nodejs
                        Reading package lists... Done
                        Building dependency tree
                        Reading state information... Done
                        The following NEW packages will be installed:
                          nodejs
                        0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
                        Need to get 0 B/18.0 MB of archives.
                        After this operation, 93.6 MB of additional disk space will be used.
                        Selecting previously unselected package nodejs.
                        (Reading database ... 32341 files and directories currently installed.)
                        Preparing to unpack .../nodejs_12.22.7-deb-1nodesource1_amd64.deb ...
                        Unpacking nodejs (12.22.7-deb-1nodesource1) ...
                        Setting up nodejs (12.22.7-deb-1nodesource1) ...
                        Processing triggers for man-db (2.9.3-2) ...
                        dicken@iobroker-produktiv:~$ node -v
                        v12.20.0
                        dicken@iobroker-produktiv:~$ ^C
                        dicken@iobroker-produktiv:~$ sudo apt policy nodejs
                        nodejs:
                          Installed: 12.22.7-deb-1nodesource1
                          Candidate: 12.22.7-deb-1nodesource1
                          Version table:
                         *** 12.22.7-deb-1nodesource1 500
                                500 https://deb.nodesource.com/node_12.x groovy/main amd64 Packages
                                100 /var/lib/dpkg/status
                             12.18.2~dfsg-1ubuntu2 500
                                500 http://archive.ubuntu.com/ubuntu groovy/universe amd64 Packages
                        dicken@iobroker-produktiv:~$ node -v
                        v12.20.0
                        
                        

                        Immernoch 12.20.0 :confused:

                        Thomas BraunT 1 Antwort Letzte Antwort
                        0
                        • Thomas BraunT Thomas Braun

                          @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                          nodejs: Installed: (none)

                          Das ist nicht installiert.

                          sudo apt install nodejs
                          

                          Und du musst da auch noch von Hand dran rumgefrickelt haben.
                          v12.20.0 kann nicht über ein Repo gekommen sein.

                          Test:

                          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
                          
                          
                          DickenD Offline
                          DickenD Offline
                          Dicken
                          schrieb am zuletzt editiert von
                          #118

                          @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                          Test:

                          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
                          
                          
                          dicken@iobroker-produktiv:~$ sudo ln -s /usr/bin/node /usr/bin/nodejs
                          dicken@iobroker-produktiv:~$ 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
                          v12.22.7
                          v12.20.0
                          6.14.8
                          Hit:1 http://archive.ubuntu.com/ubuntu groovy InRelease
                          Hit:2 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
                          Hit:3 http://archive.ubuntu.com/ubuntu groovy-security InRelease
                          Hit:4 https://deb.nodesource.com/node_12.x groovy InRelease
                          Reading package lists... Done
                          Building dependency tree
                          Reading state information... Done
                          All packages are up to date.
                          Hit:1 http://archive.ubuntu.com/ubuntu groovy InRelease
                          Hit:2 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
                          Hit:3 https://deb.nodesource.com/node_12.x groovy InRelease
                          Hit:4 http://archive.ubuntu.com/ubuntu groovy-security InRelease
                          Reading package lists... Done
                          Building dependency tree
                          Reading state information... Done
                          All packages are up to date.
                          nodejs:
                            Installed: 12.22.7-deb-1nodesource1
                            Candidate: 12.22.7-deb-1nodesource1
                            Version table:
                           *** 12.22.7-deb-1nodesource1 500
                                  500 https://deb.nodesource.com/node_12.x groovy/main amd64 Packages
                                  100 /var/lib/dpkg/status
                               12.18.2~dfsg-1ubuntu2 500
                                  500 http://archive.ubuntu.com/ubuntu groovy/universe amd64 Packages
                          dicken@iobroker-produktiv:~$ node -v
                          v12.20.0
                          
                          
                          1 Antwort Letzte Antwort
                          0
                          • DickenD Dicken

                            @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                            Und du musst da auch noch von Hand dran rumgefrickelt haben.
                            v12.20.0 kann nicht über ein Repo gekommen sein.

                            Ja das mag sein, zu meinen Anfängen mit iobroker.

                            dicken@iobroker-produktiv:~$ sudo apt install nodejs
                            Reading package lists... Done
                            Building dependency tree
                            Reading state information... Done
                            The following NEW packages will be installed:
                              nodejs
                            0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
                            Need to get 0 B/18.0 MB of archives.
                            After this operation, 93.6 MB of additional disk space will be used.
                            Selecting previously unselected package nodejs.
                            (Reading database ... 32341 files and directories currently installed.)
                            Preparing to unpack .../nodejs_12.22.7-deb-1nodesource1_amd64.deb ...
                            Unpacking nodejs (12.22.7-deb-1nodesource1) ...
                            Setting up nodejs (12.22.7-deb-1nodesource1) ...
                            Processing triggers for man-db (2.9.3-2) ...
                            dicken@iobroker-produktiv:~$ node -v
                            v12.20.0
                            dicken@iobroker-produktiv:~$ ^C
                            dicken@iobroker-produktiv:~$ sudo apt policy nodejs
                            nodejs:
                              Installed: 12.22.7-deb-1nodesource1
                              Candidate: 12.22.7-deb-1nodesource1
                              Version table:
                             *** 12.22.7-deb-1nodesource1 500
                                    500 https://deb.nodesource.com/node_12.x groovy/main amd64 Packages
                                    100 /var/lib/dpkg/status
                                 12.18.2~dfsg-1ubuntu2 500
                                    500 http://archive.ubuntu.com/ubuntu groovy/universe amd64 Packages
                            dicken@iobroker-produktiv:~$ node -v
                            v12.20.0
                            
                            

                            Immernoch 12.20.0 :confused:

                            Thomas BraunT Online
                            Thomas BraunT Online
                            Thomas Braun
                            Most Active
                            schrieb am zuletzt editiert von Thomas Braun
                            #119

                            @dicken sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                            apt policy nodejs

                            Hatte ich geschrieben, dass das mit sudo eingeleitet wird?

                            Immernoch 12.20.0

                            Falsche Pfade vom händischen Gefrickel.

                            sudo ln -s /usr/bin/node /usr/bin/nodejs
                            sudo rm /usr/local/bin/node
                            sudo rm /usr/local/bin/npm
                            sudo reboot
                            

                            Linux-Werkzeugkasten:
                            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                            NodeJS Fixer Skript:
                            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                            1 Antwort Letzte Antwort
                            1
                            • DickenD Offline
                              DickenD Offline
                              Dicken
                              schrieb am zuletzt editiert von Dicken
                              #120
                              dicken@iobroker-produktiv:~$ sudo ln -s /usr/bin/node /usr/bin/nodejs
                              ln: failed to create symbolic link '/usr/bin/nodejs': File exists
                              
                              

                              Ok versteh ich, hab ich ja eben schon gemacht den Befehl aber der zweite geht nicht:

                              dicken@iobroker-produktiv:~$ sudo rm -/usr/local/bin/node
                              rm: invalid option -- '/'
                              Try 'rm --help' for more information.
                              

                              vermutlich "sudo rm /usr/local/bin/node" ? (also ohne den Bindestrich?)

                              EDIT: Vielen Dank :) Jetzt klappt es :)

                              dicken@iobroker-produktiv:~$ node -v
                              v12.22.7
                              
                              
                              Thomas BraunT 2 Antworten Letzte Antwort
                              0
                              • DickenD Dicken
                                dicken@iobroker-produktiv:~$ sudo ln -s /usr/bin/node /usr/bin/nodejs
                                ln: failed to create symbolic link '/usr/bin/nodejs': File exists
                                
                                

                                Ok versteh ich, hab ich ja eben schon gemacht den Befehl aber der zweite geht nicht:

                                dicken@iobroker-produktiv:~$ sudo rm -/usr/local/bin/node
                                rm: invalid option -- '/'
                                Try 'rm --help' for more information.
                                

                                vermutlich "sudo rm /usr/local/bin/node" ? (also ohne den Bindestrich?)

                                EDIT: Vielen Dank :) Jetzt klappt es :)

                                dicken@iobroker-produktiv:~$ node -v
                                v12.22.7
                                
                                
                                Thomas BraunT Online
                                Thomas BraunT Online
                                Thomas Braun
                                Most Active
                                schrieb am zuletzt editiert von
                                #121

                                @dicken

                                Ja, ohne Bindestrich. Da hatte ich überlegt mit einer Option zu arbeiten, dann aber doch wieder gelöscht und den Strich übersehen.

                                Linux-Werkzeugkasten:
                                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                NodeJS Fixer Skript:
                                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                1 Antwort Letzte Antwort
                                0
                                • DickenD Dicken
                                  dicken@iobroker-produktiv:~$ sudo ln -s /usr/bin/node /usr/bin/nodejs
                                  ln: failed to create symbolic link '/usr/bin/nodejs': File exists
                                  
                                  

                                  Ok versteh ich, hab ich ja eben schon gemacht den Befehl aber der zweite geht nicht:

                                  dicken@iobroker-produktiv:~$ sudo rm -/usr/local/bin/node
                                  rm: invalid option -- '/'
                                  Try 'rm --help' for more information.
                                  

                                  vermutlich "sudo rm /usr/local/bin/node" ? (also ohne den Bindestrich?)

                                  EDIT: Vielen Dank :) Jetzt klappt es :)

                                  dicken@iobroker-produktiv:~$ node -v
                                  v12.22.7
                                  
                                  
                                  Thomas BraunT Online
                                  Thomas BraunT Online
                                  Thomas Braun
                                  Most Active
                                  schrieb am zuletzt editiert von
                                  #122

                                  @dicken

                                  Wie sieht

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

                                  nun aus?

                                  Linux-Werkzeugkasten:
                                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                  NodeJS Fixer Skript:
                                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                  DickenD 1 Antwort Letzte Antwort
                                  0
                                  • Thomas BraunT Thomas Braun

                                    @dicken

                                    Wie sieht

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

                                    nun aus?

                                    DickenD Offline
                                    DickenD Offline
                                    Dicken
                                    schrieb am zuletzt editiert von Dicken
                                    #123

                                    @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                                    @dicken

                                    Wie sieht

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

                                    nun aus?

                                    dicken@iobroker-produktiv:~$ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                                    /usr/bin/nodejs
                                    /usr/bin/node
                                    /usr/bin/npm
                                    v12.22.7
                                    v12.22.7
                                    6.14.15
                                    
                                    

                                    Das sieht doch gut aus :)

                                    Thomas BraunT 1 Antwort Letzte Antwort
                                    0
                                    • DickenD Dicken

                                      @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                                      @dicken

                                      Wie sieht

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

                                      nun aus?

                                      dicken@iobroker-produktiv:~$ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                                      /usr/bin/nodejs
                                      /usr/bin/node
                                      /usr/bin/npm
                                      v12.22.7
                                      v12.22.7
                                      6.14.15
                                      
                                      

                                      Das sieht doch gut aus :)

                                      Thomas BraunT Online
                                      Thomas BraunT Online
                                      Thomas Braun
                                      Most Active
                                      schrieb am zuletzt editiert von
                                      #124

                                      @dicken
                                      Vollständig posten. Alles. Inkl. Eingabezeile.

                                      Linux-Werkzeugkasten:
                                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                      NodeJS Fixer Skript:
                                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                      DickenD 1 Antwort Letzte Antwort
                                      0
                                      • Thomas BraunT Thomas Braun

                                        @dicken
                                        Vollständig posten. Alles. Inkl. Eingabezeile.

                                        DickenD Offline
                                        DickenD Offline
                                        Dicken
                                        schrieb am zuletzt editiert von
                                        #125

                                        @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                                        @dicken
                                        Vollständig posten. Alles. Inkl. Eingabezeile.

                                        Hab den vorherigen Beitrag bearbeitet :)

                                        Thomas BraunT 1 Antwort Letzte Antwort
                                        0
                                        • DickenD Dicken

                                          @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:

                                          @dicken
                                          Vollständig posten. Alles. Inkl. Eingabezeile.

                                          Hab den vorherigen Beitrag bearbeitet :)

                                          Thomas BraunT Online
                                          Thomas BraunT Online
                                          Thomas Braun
                                          Most Active
                                          schrieb am zuletzt editiert von
                                          #126

                                          @dicken
                                          Da fehlt immer noch was.

                                          Linux-Werkzeugkasten:
                                          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                          NodeJS Fixer Skript:
                                          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                          DickenD 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          762

                                          Online

                                          32.4k

                                          Benutzer

                                          81.4k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe