Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Fehler in der node-red installation

    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

    Fehler in der node-red installation

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

      Hallo allerseits,

      seit einigen Tagen startet node-red nicht mehr.

      root@raspi2:/opt/iobroker# node /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/red.js -v --settings /opt/iobroker/iobroker-data/node-red/settings.js
      module.js:327
          throw err;
          ^
      
      Error: Cannot find module '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/red.js'
          at Function.Module._resolveFilename (module.js:325:15)
          at Function.Module._load (module.js:276:25)
          at Function.Module.runMain (module.js:441:10)
          at startup (node.js:139:18)
          at node.js:968:3
      root@raspi2:/opt/iobroker# find . -name red.js
      ./node_modules/node-red/red.js
      ./node_modules/node-red/red/red.js
      ./node_modules/node-red/public/red/red.js
      
      

      Der Pfad sieht irgendwie komisch aus. Das doppelte "node_modules" ist doch wohl falsch, oder? Ich brauch einen Tipp, wie bzw. wo ich das korrigieren kann.

      Guido

      1 Reply Last reply Reply Quote 0
      • Bluefox
        Bluefox last edited by

        Alles klar. Werde ich fixen. Das passiert nur mit npm 3.x

        1 Reply Last reply Reply Quote 0
        • M
          MehrCurry last edited by

          Hmmm, ich bin mir nicht sicher, ob das der Grund ist:

          root@raspi2:~# node --version
          v4.4.2
          root@raspi2:~# npm --version
          2.15.0
          root@raspi2:~# 
          
          
          1 Reply Last reply Reply Quote 0
          • Bluefox
            Bluefox last edited by

            Probier mal jetzt. 8-)

            1 Reply Last reply Reply Quote 0
            • sissiwup
              sissiwup last edited by

              npm install iobroker.node-red --production --prefix "/opt/iobroker" (System call)
              npm ERR! Linux 4.1.19-v7+
              npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.node-red" "--production" "--prefix" "/opt/iobroker"
              npm ERR! node v4.4.3
              npm ERR! npm  v2.15.1
              npm ERR! path /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/public
              npm ERR! code ENOTEMPTY
              npm ERR! errno -39
              npm ERR! syscall rmdir
              
              npm ERR! ENOTEMPTY: directory not empty, rmdir '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/public'
              npm ERR! 
              npm ERR! If you need help, you may report this error at:
              npm ERR!     <https: github.com/npm/issues="">npm ERR! Please include the following file with any support request:
              npm ERR!     /opt/iobroker/npm-debug.log</https:> 
              
              1 Reply Last reply Reply Quote 0
              • Bluefox
                Bluefox last edited by

                @sissiwup:

                npm install iobroker.node-red --production --prefix "/opt/iobroker" (System call)
                npm ERR! Linux 4.1.19-v7+
                npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.node-red" "--production" "--prefix" "/opt/iobroker"
                npm ERR! node v4.4.3
                npm ERR! npm  v2.15.1
                npm ERR! path /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/public
                npm ERR! code ENOTEMPTY
                npm ERR! errno -39
                npm ERR! syscall rmdir
                
                npm ERR! ENOTEMPTY: directory not empty, rmdir '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/public'
                npm ERR! 
                npm ERR! If you need help, you may report this error at:
                npm ERR!     <https: github.com/npm/issues="">npm ERR! Please include the following file with any support request:
                npm ERR!     /opt/iobroker/npm-debug.log</https:> 
                ```` `  
                

                Hm… Ich weiß noch nicht, was ich da machen kann. Aber so was wird gehen (vorübergehend):

                cd /opt/iobroker
                iobroker stop node-red
                cd node_modules/iobroker.node-red
                sudo rm * -R
                cd ..
                sudo rmdir iobroker.node-red
                cd ..
                sudo npm install iobroker.node-red
                
                
                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Support us

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

                729
                Online

                31.9k
                Users

                80.3k
                Topics

                1.3m
                Posts

                3
                6
                1458
                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