Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Solved issue with install

    MMM-Weather
    2
    7
    158
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      v1ks last edited by

      Hi

      i am trying to install this module but getting the below error, any advice?

      pi@raspberrypi:~/MagicMirror/modules/MMM-Weather $ npm install

      MMM-Weather@1.0.0 preinstall /home/pi/MagicMirror/modules/MMM-Weather
      installer/preinstall.sh

      Welcome to MMM-Weather

      Installing Sources…
      Branch ‘main’ set up to track remote branch ‘main’ from ‘origin’.

      Installing all npm libraries…
      Error: ENOENT: no such file or directory, uv_cwd
      at process.wrappedCwd (internal/bootstrap/switches/does_own_process_state.js:128:26)
      at process.cwd (/usr/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:10:19)
      at Conf.loadPrefix (/usr/lib/node_modules/npm/lib/config/load-prefix.js:46:24)
      at load_ (/usr/lib/node_modules/npm/lib/config/core.js:109:8)
      at Conf.<anonymous> (/usr/lib/node_modules/npm/lib/config/core.js:96:5)
      at Conf.emit (events.js:314:20)
      at ConfigChain._resolve (/usr/lib/node_modules/npm/node_modules/config-chain/index.js:281:34)
      at ConfigChain.add (/usr/lib/node_modules/npm/node_modules/config-chain/index.js:259:10)
      at Conf.add (/usr/lib/node_modules/npm/lib/config/core.js:338:27)
      at Conf.<anonymous> (/usr/lib/node_modules/npm/lib/config/core.js:314:25)
      internal/bootstrap/switches/does_own_process_state.js:128
      cachedCwd = rawMethods.cwd();
      ^

      Error: ENOENT: no such file or directory, uv_cwd
      at process.wrappedCwd (internal/bootstrap/switches/does_own_process_state.js:128:26)
      at process.cwd (/usr/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:10:19)
      at process.errorHandler (/usr/lib/node_modules/npm/lib/utils/error-handler.js:183:30)
      at process.emit (events.js:314:20)
      at process._fatalException (internal/process/execution.js:165:25) {
      errno: -2,
      code: ‘ENOENT’,
      syscall: ‘uv_cwd’
      }
      npm ERR! code ELIFECYCLE
      npm ERR! errno 7
      npm ERR! MMM-Weather@1.0.0 preinstall: installer/preinstall.sh
      npm ERR! Exit status 7
      npm ERR!
      npm ERR! Failed at the MMM-Weather@1.0.0 preinstall script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      npm WARN Local package.json exists, but node_modules missing, did you mean to install?

      npm ERR! A complete log of this run can be found in:
      npm ERR! /home/pi/.npm/_logs/2021-07-08T19_00_51_497Z-debug.log
      pi@raspberrypi:~/MagicMirror/modules/MMM-Weather $

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        Retry npm install again (should works)

        I will solve it soon

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

          Thanks I managed to install it but its not showing in my MM on the top right, below is what i have put in the config.js. I removed the default weather module from the Config.js and only have your one as below.

          {
          module: “MMM-Weather”,
          position: “top_right”,
          configDeepMerge: true,
          config: {
          debug: true,
          updateInterval: “15m”, // 15 minutes
          updateFadeSpeed: 500,
          api: {
          key: “my_key”,
          latitude: “51.50853”,
          longitude: “-0.12574”,
          //units: config.units,
          //language: config.language
          },
          }
          },

          only other thing i see is this, but i dont think this is the cause.

          No helper found for module: MMM-Weather

          let me know if you need all the config.js, if so i can send and will remove the personal info from there as i have the GA module in there etc.

          thanks for your help

          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by bugsounet

            I repeat again:

            bugs@debian:~/MagicMirror/modules$ git clone https://github.com/bugsounet/MMM-Weather
            Clonage dans 'MMM-Weather'...
            remote: Enumerating objects: 106, done.
            remote: Counting objects: 100% (106/106), done.
            remote: Compressing objects: 100% (80/80), done.
            remote: Total 106 (delta 53), reused 62 (delta 24), pack-reused 0
            Réception d'objets: 100% (106/106), 126.56 Kio | 3.83 Mio/s, fait.
            Résolution des deltas: 100% (53/53), fait.
            bugs@debian:~/MagicMirror/modules$ cd MMM-Weather/
            bugs@debian:~/MagicMirror/modules/MMM-Weather$ npm install
            
            > MMM-Weather@1.0.0 preinstall /home/bugs/MagicMirror/modules/MMM-Weather
            > installer/preinstall.sh
            
            
            Welcome to MMM-Weather
            
            Installing Sources...
            La branche 'main' est paramétrée pour suivre la branche distante 'main' depuis 'origin'.
            
            Installing all npm libraries...
            Error: ENOENT: no such file or directory, uv_cwd
            ...
            npm ERR! Failed at the MMM-Weather@1.0.0 preinstall script.
            npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
            npm WARN Local package.json exists, but node_modules missing, did you mean to install?
            
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /home/bugs/.npm/_logs/2021-07-09T11_39_46_074Z-debug.log
            
            bugs@debian:~/MagicMirror/modules/MMM-Weather$ npm install
            npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
            npm WARN deprecated har-validator@5.1.5: this library is no longer supported
            npm notice created a lockfile as package-lock.json. You should commit this file.
            added 48 packages from 59 contributors and audited 48 packages in 1.526s
            
            2 packages are looking for funding
              run `npm fund` for details
            
            found 0 vulnerabilities
            

            2 npm install require and I will solve proper installer soon (new version of NPM sucks)

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

              ok sorry i assumed it was fixed when you fixed the installation hence my post. But i will wait for it to be fully fixed as you mentioned above.

              Thanks alot.

              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by

                installer Fully Fixed 😉

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

                  Thank you.

                  1 Reply Last reply Reply Quote 1
                  • Moved from by  bugsounet bugsounet 
                  • First post
                    Last post
                  Powered by NodeBB | @bugsounet ©2022