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.

    Install package.json

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    5 Posts 2 Posters 1.3k 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.
    • N6NGN Offline
      N6NG
      last edited by

      Re: fix for black screen in 2.16 and later
      I did the npm install package.json and it installed it ok and is listed in the directory MMM-CalendarWeek
      then I did git checkout package.json and got the message error: pathspec ‘package.json’ did not match any files(s) known to git.
      So I did npm install package.json and it said it was up to date. so I did the checkout again and got the same message.
      Any words of wisdon o-guru- of the Magic Mirror (eg Sam)
      Dennis

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

        @N6NG not npm install package.json

        let’s go thru the instructions again

        you got a full blank screen after installing and configuring a module

        yes

        you got the cannot find module ‘???’ message

        yes

        does the module HAVE a package.json file? NO

        no, create one by typing

         npm init -y
        

        in the module folder

        yes , continue on

        get the name of the missing module from the message in step 1

        in the module folder do

        npm install ?????
        

        where ??? is the name of the missing g module, you got in the prior step

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        N6NGN 1 Reply Last reply Reply Quote 0
        • N6NGN Offline
          N6NG @sdetweil
          last edited by

          @sdetweil said in Install package.json:

          @N6NG not npm install package.json
          let’s go thru the instructions again
          you got a full blank screen after installing and configuring a module
          yes
          you got the cannot find module ‘???’ message
          yes
          does the module HAVE a package.json file? NO
          no, create one by typing
          npm init -y

          in the module folder
          yes , continue on

          Correct up to here… I did do install package.json
          I looked and there was a package.json in the MMM-CalendarWeek module
          At this point I did the git checkout package.json ****************
          ****** That’s where I get the message error: pathspec ‘package.json’ did not match any files known to git
          **
          This is as far as I could get**

          get the name of the missing module from the message in step 1

          in the module folder do
          npm install ???

          where ??? is the name of the missing g module, you got in the prior step

          S 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @N6NG
            last edited by

            @N6NG said in Install package.json:

            Correct up to here… I did do install package.json
            I looked and there was a package.json in the MMM-CalendarWeek module
            At this point I did the git checkout package.json ****************
            ****** That’s where I get the message error: pathspec ‘package.json’ did not match any files known to git**
            This is as far as I could get**

            but why did you do that? that is not what the instructions said to do…

            they said

            does the module HAVE a package.json file? NO
            no, create one by typing

            npm init -y
            

            in the module folder

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @N6NG further the instructions said

              NEVER EVER do this (npm init ) in the MagicMirror folder
              if you do/did, then do
              git checkout package.json
              to restore the package.json file

              I guess I need to add more words

              if you DID do npm init -y IN THE MagicMirror folder
              then you need to fix this. do

              cd ~/MagicMirror
              git checkout pakckage.json
              

              then go back to the module folder

              cd -
              

              an resume the fix instructions
              then go

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 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