Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.

    Use npm for module installs

    Feature Requests
    6
    16
    6567
    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.
    • paviro
      paviro Admin last edited by

      Do you guys think it would be possible to use npm for installing modules? This forum software can do it, so it has to be possible somehow.

      1 Reply Last reply Reply Quote 0
      • MichMich
        MichMich Admin last edited by

        The biggest issue is that you can specifically mention where to install modules.

        paviro 1 Reply Last reply Reply Quote 0
        • MichMich
          MichMich Admin last edited by

          By the way, when MM2 is stable, it will be available for installation using npm install magic mirror.

          1 Reply Last reply Reply Quote 1
          • paviro
            paviro Admin @MichMich last edited by

            @MichMich the forum also installs it’s modules into node_modules but it still somehow manages to find them and let the user activate them 😕

            MichMich 1 Reply Last reply Reply Quote 0
            • MichMich
              MichMich Admin @paviro last edited by

              @paviro Yes, but that doesn’t mean they are in a specific folder. That would mean all modules will be installed in ~/MagicMirror/modules/node_modules/. - I don’t think that is what we want.

              1 Reply Last reply Reply Quote 0
              • paviro
                paviro Admin last edited by

                That’s correct but would that be a real problem?

                MichMich 1 Reply Last reply Reply Quote 0
                • MichMich
                  MichMich Admin @paviro last edited by

                  @paviro Yes,it has to big of an impact on the file structure. This would require a lot of rewriting. (And besides that, it’s extremely ugly :))

                  1 Reply Last reply Reply Quote 0
                  • paviro
                    paviro Admin last edited by

                    I agree on the ugly part 😃 your are right I guess, would just be easier for the users 🙂 but probably not enough to be worth it.

                    1 Reply Last reply Reply Quote 0
                    • MichMich
                      MichMich Admin last edited by

                      It’s not that it’s not worth it. It’s just not cleanest solution.

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

                        if it could be possible to build a Management Interface like iobroker (www.iobroker.org), it would be much more comfortable to use. Good node update und plugin design.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy