Read the statement by Michael Teeuw here.
Install package.json
-
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 -
@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
-
@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 -yin the module folder
yes , continue onCorrect 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
-
@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 typingnpm init -y
in the module folder
-
@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 fileI guess I need to add more words
if you DID do npm init -y IN THE MagicMirror folder
then you need to fix this. docd ~/MagicMirror git checkout pakckage.json
then go back to the module folder
cd -
an resume the fix instructions
then go