MagicMirror Forum

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

    SOLVED No authorization at command input

    Troubleshooting
    2
    11
    125
    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.
    • T
      Tavros last edited by

      Hello everyone, I get the message “no permission” when I run a command. for example npm run config:check. I have the latest version of Magic Mirror installed and running on a Pi 3b+. Starting the SW works fine. Do you know of a paper on this? do you need more info?

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @Tavros last edited by

        @Tavros can u show the output of the

        npm run config:check

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • T
          Tavros last edited by

          pi@raspberrypi:~/MagicMirror $ npm run config:check

          magicmirror@2.19.0 config:check /home/pi/MagicMirror > node js/check_config.js

          /home/pi/MagicMirror/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2383 const require$1 = Module.createRequire((typeof document === ‘undefined’ ? new equire(‘u’ + ‘rl’).URL) ('file: filename).href : (document.currentScript & document.currentScript.src || new URL(‘eslintrc.cjs’, document.baseURI).href)) A

          TypeError: Module.createRequire is not a function at Object. (/home/pi/MagicMirror/node_modules/@eslint/eslintrc/

          st/eslintrc.cjs:2383:26)

          at Module._compile (internal/modules/cjs/loader.js:776:30) at Object. Module._extensions…js (internal/modules/cjs/loader.js:787:10)

          at Module.load (internal/modules/cjs/loader.js: 653:32)

          at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function. Module._load (internal1/modules/cjs/loader.js:585:3)

          at Module.require (internal/modules/cjs/loader.js: 690:17) at require (internal/modules/cjs/helpers.js:25:18)

          at Object.<anonymous (/home/pi/MagicMirror/node_modules/eslint/lib/cli-en

          ne/cli-engine.js:33:5) at Module._compile (internal/modules/cjs/loader.js:776:30)

          npm ERR! code ELIFECYCLE

          npm ERR! errno 1

          I

          npm ERR! magicmirror@2.19.0 config:check: node js/check_config.js

          npm ERR! Exit status 1

          npm ERR!

          npm ERR! Failed at the magicmirror@2.19.0 config:check script. npm ERR! This is probably not a problem with npm. There is likely additional 1 ging output above.

          npm ERR! A complete log of this run can be found in:

          npm ERR!

          /home/pi/. npm/_logs/2022-04-04T17_07_40_905Z-debug.log

          S 1 Reply Last reply Reply Quote 0
          • T
            Tavros last edited by

            sorry couldn’t add a picture. can you read something there?

            1 Reply Last reply Reply Quote 0
            • S
              sdetweil @Tavros last edited by

              @Tavros said in No authorization at command input:

              Module.createRequire is not a function at Object.

              this is a known issue
              see
              https://github.com/MichMich/MagicMirror/issues/2772

              Sam

              Create a working config
              How to add modules

              T 1 Reply Last reply Reply Quote 0
              • T
                Tavros @sdetweil last edited by

                @sdetweil thanks i did it. but the message still appears at "config/config.js

                S 1 Reply Last reply Reply Quote 0
                • S
                  sdetweil @Tavros last edited by

                  @Tavros show the message again

                  Sam

                  Create a working config
                  How to add modules

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    Tavros @sdetweil last edited by

                    @sdetweil
                    pi@raspberrypi:-/MagicMirror S config/config.js bash: config/config.js: Keine Berechtigung

                    pi@raspberrypi:~/MagicMirror $ config/ bash: config/: Ist ein Verzeichnis

                    pi@raspberrypi:~/MagicMirror config.js

                    bash: config.js: Kommando nicht gefunden.

                    pi@raspberrypi:~/MagicMirror $ npm run config: check

                    magicmirror@2.19.0 config:check > node js/check_config.js

                    [04.04.2022 21:58.25.956] [INFO] Checking file /home/pi/MagicMirror/config/config.js

                    [04.04.2022 21:58.26.243] [INFO] Your configuration file doesn’t contain syntax errors 🙂 pi@raspberrypi:~/MagicMirror $

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sdetweil @Tavros last edited by

                      @Tavros you don’t EXECUTE config.js, it is USED by magic mirror

                      npm start
                      

                      you can edit it, just a text file

                      nano config.js
                      

                      Sam

                      Create a working config
                      How to add modules

                      T 2 Replies Last reply Reply Quote 0
                      • T
                        Tavros @sdetweil last edited by

                        @sdetweil okaaayy i’m a beginner. I’ll try it tomorrow then. Thanks!

                        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