Read the statement by Michael Teeuw here.
Doesn't contain package.json file
-
Re: include npm module like firebase module into our own MM module
I’ve been trying for a while and I got the same error every single time.
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Failed to load gRPC binary module because it was not installed for the current system Expected directory: electron-v3.0-linux-arm-glibc Found: [node-v59-linux-arm-glibc]cd ~/MagicMirror/modules/MMM-hellotsuhan npm install --save-dev electron-rebuild ./node_modules/.bin/electron-rebuildTried executing this and I got this
How do I get that file?
:::
I’m very new to this.
:::
-
@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-rebuildThat 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.jsThanks 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
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