Bugsounet Coding

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Need Testing new dependencies auto installer

    General Discussion
    3
    8
    112
    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.
    • bugsounet
      bugsounet Main Coder last edited by bugsounet

      You have some difficulty for installing MMM-Detector or MMM-GoogleAssistant
      and you have some error ?

      This testing script is yours !

      I’m just writing an new auto installer for auto-installing all new dependencies

      If you want to try it, this is some needed commands:

      cd ~
      git clone https://github.com/bugsounet/require
      cd require
      ./require.sh
      

      just tell me if helping and what do you think about this 🙂

      C 1 Reply Last reply Reply Quote 0
      • C
        CalcU BetaTester @bugsounet last edited by

        @bugsounet

        Tested.

        you used a “;” instead a “:” after https 🙂

        but it’s not working. I updated to npm 7.18.1, i like to be updated xD.

        And this script is not changing the version:

        pi@MagicMirror:~ $ git clone https://github.com/bugsounet/require
        Clonando en 'require'...
        remote: Enumerating objects: 11, done.
        remote: Counting objects: 100% (11/11), done.
        remote: Compressing objects: 100% (8/8), done.
        remote: Total 11 (delta 1), reused 3 (delta 1), pack-reused 0
        Desempaquetando objetos: 100% (11/11), listo.
        pi@MagicMirror:~ $ cd require
        pi@MagicMirror:~/require $ ./require.sh
        Welcome to @bugsounet module Pre-Require installer! (Beta)
        
        Checking OS...
        OS Detected: linux-gnueabihf (raspbian 10 armv7l)
        Checking all dependencies...
        All Dependencies needed are installed !
        
        NODE Version testing:
        Require: >= v12.0.0
        Current: v16.4.1 ✓
        
        NPM Version testing:
        Require: >= 6.14.15 < 7.0.0
        Current: 7.18.1 𐄂
        Failed: incorrect version! -
        
        Updating to npm v6...
        
        removed 70 packages, changed 98 packages, and audited 438 packages in 18s
        
        3 packages are looking for funding
          run `npm fund` for details
        
        found 0 vulnerabilities
        npm installation Done! version=V7.18.1
        
        Passed: perfect!
        
        Notes:
        If any version change maybe you have to reinstall any modules !
        For @bugsounet modules:
        MMM-Detector: npm run rebuild
        MMM-GoogleAssistant: npm run rebuild
        for Others modules npm install should works
        
        pi@MagicMirror:~/require $ npm -v
        7.18.1
        pi@MagicMirror:~/require $
        
        1 Reply Last reply Reply Quote 0
        • C
          CalcU BetaTester last edited by

          Maybe you tried to install npm with sudo, and (in my case) it’s without sudo

          bugsounet 1 Reply Last reply Reply Quote 0
          • D
            DJB1966 Helpers last edited by DJB1966

            Fix with “:” and works for me

            cd ~
            git clone https://github.com/bugsounet/require
            cd require
            ./require.sh
            
            1 Reply Last reply Reply Quote 0
            • bugsounet
              bugsounet Main Coder @CalcU last edited by

              @calcu :

              nop it’s not that: script source
              just because you don’t use official package for node.
              if you prefer to use n package it’s not a solution

              If you use n pacakge. All is install in another directory.

              so:

              • you can’t use apt-get update nodejs for updating node
              • and you can’t use sudo npm install -g npm@6 because it’s managed by n too

              that why it’s not works 🙂

              C 1 Reply Last reply Reply Quote 0
              • C
                CalcU BetaTester @bugsounet last edited by

                @bugsounet my knowledge is limited but i think it’s:

                in line 375 you use “sudo npm install -g npm@6.14.15”

                I checked 2 times in my system:

                Actual version:

                pi@MagicMirror:~ $ npm -v
                6.14.15
                pi@MagicMirror:~ $ sudo npm -v
                7.24.2
                

                and Magicmirror was installed without sudo, that means it uses the first version.

                1 Reply Last reply Reply Quote 0
                • C
                  CalcU BetaTester last edited by

                  i can install with: ‘sudo npm install -g npm@6.14.15’ and with ‘npm install -g npm@6.14.15’. and i have actually both installed 🙂

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

                    it’s just mean that you have 2 version of npm installed (v7 for all user) and you override this rule but install v6.14.15 by installing npm in MagicMirror dependency [BUT worls only for MM not for Modules] or/and overrided by n package [this play with $PATH environment]

                    this methode for installing npackage is funny…

                    1. you have to install nodejs (by node installer from website)
                    2. you have to install npm (installed by default with nodejs)
                    3. and now you can install n … (not really logic !)

                    really not a proper method sorry 🙂

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