Read the statement by Michael Teeuw here.
Doesn't contain package.json file
-
@allancherianbiju said in Doesn't contain package.json file:
Tried executing this and I got this
got what?
-
Formatting mistake. The error I posted isn’t showing up due to some reason.
npm ERR! Could not install from “node_modules/ .bin/electron-rebuild” as it does not contain a package.json file.
-
many components in a javascript application need to have their versions match the surrounding runtime. grpc is one of those… it will run in and outside the electron browser…
the electron-rebuild module is loaded as part of the base,
so you would docd ~/MagicMirror node_modules/.bin/electron_rebuild
-
Just closing notes. I was able to fix this!
@sdetweil provided extra commands.
cd ~/MagicMirror npm install electron-rebuild node_modules/.bin/electron-rebuild
That worked for me, but I was faced with a new error.
Error: Cannot find module 'node_helper_.
Fixed that by running
cd -/MagicMirror git checkout modules/node_modules/node_helper/index.js
Thanks for the help guys!
-
I had to reinstall MM and had to go through all of this again. Rebuilding electron fixed the issue and I found out that the git command I used doesn’t work anymore. Zzz… Updating should help.
cd -/MagicMirror git checkout modules/node_modules/node_helper/index.js
-
@allancherianbiju in version 2.10 we fixed this problem, by moving the file to a different location.
-
@sdetweil Oh! That’s great! Onward, then :D