• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Error after typing npm start

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 2 Posters 1.7k Views 2 Watching
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.
  • D Offline
    dr2man
    last edited by Feb 2, 2024, 9:49 PM

    I am new to MM, I just followed the directions closely to install Magic Mirror on my PC. I got to the section where I was typing npm start and I got an error: DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
    ‘DISPLAY’ is not recognized as an internal or external command,
    operable program or batch file.
    Can anyone help?

    S 1 Reply Last reply Feb 2, 2024, 11:34 PM Reply Quote 0
    • S Away
      sdetweil @dr2man
      last edited by Feb 2, 2024, 11:34 PM

      @dr2man are you doing this on windows?

      read the rest of the instructions

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • D Offline
        dr2man
        last edited by Feb 2, 2024, 11:46 PM

        Yes Windows 10, I have looked at the rest of the page. If there is something I am supposed to see can you point it out? I continue to get this: ‘DISPLAY’ is not recognized as an internal or external command, operable program or batch file.
        After running the npm start command.
        Thanks

        S 1 Reply Last reply Feb 3, 2024, 12:26 AM Reply Quote 0
        • D Offline
          dr2man
          last edited by Feb 2, 2024, 11:50 PM

          I initially get these errors below:
          C:\Users\ron_000>npm start
          npm ERR! code ENOENT
          npm ERR! syscall open
          npm ERR! path C:\Users\ron_000\package.json
          npm ERR! errno -4058
          npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open ‘C:\Users\ron_000\package.json’
          npm ERR! enoent This is related to npm not being able to find a file.
          npm ERR! enoent

          npm ERR! A complete log of this run can be found in: C:\Users\ron_000\AppData\Local\npm-cache_logs\2024-02-02T23_48_46_079Z-debug-0.log

          S 1 Reply Last reply Feb 3, 2024, 12:27 AM Reply Quote 0
          • S Away
            sdetweil @dr2man
            last edited by sdetweil Feb 4, 2024, 2:38 PM Feb 3, 2024, 12:26 AM

            @dr2man said in Error after typing npm start:

            After running the npm start command

            Screenshot_20240202_172413_Chrome.jpg

            and the doc is wrong

            change to “node_modules…”
            drop the

            .\\
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Feb 11, 2024, 2:20 PM Reply Quote 0
            • S Away
              sdetweil @dr2man
              last edited by sdetweil Feb 9, 2024, 3:16 PM Feb 3, 2024, 12:27 AM

              @dr2man said in Error after typing npm start:

              C:\Users\ron_000>npm start
              npm ERR! code ENOENT

              you always have to be in the MagicMirror folder when issuing npm start
              or other commands for MagicMirror

              so,
              cd MagicMirror
              then
              npm start

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • D Offline
                dr2man @sdetweil
                last edited by Feb 11, 2024, 2:20 PM

                @sdetweil Thank you so much for your help, I had surgery last week and recuperating, and I will be getting back to the project soon.

                S 1 Reply Last reply Feb 11, 2024, 2:23 PM Reply Quote 0
                • S Away
                  sdetweil @dr2man
                  last edited by Feb 11, 2024, 2:23 PM

                  @dr2man no rush… whenever you get appropriate time. thanks for the update

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy