Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after installing #12

Open
MuellerNicolas opened this issue Dec 16, 2020 · 4 comments · May be fixed by #18
Open

Error after installing #12

MuellerNicolas opened this issue Dec 16, 2020 · 4 comments · May be fixed by #18

Comments

@MuellerNicolas
Copy link

MuellerNicolas commented Dec 16, 2020

I am running magic mirror in a docker container however, after fixing an error with electron by installing electron by hand and editing the path in the package.json see issue: #7

Now magic mirror can't start and i get the following docker logs:

[2020-12-16 18:34:53.575] [ERROR]  Error: The module '/opt/magic_mirror/modules/MMM-Buttons/node_modules/epoll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 85. This version of Node.js requires
NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1208:18)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at bindings (/opt/magic_mirror/modules/MMM-Buttons/node_modules/bindings/bindings.js:112:48)
    at /opt/magic_mirror/modules/MMM-Buttons/node_modules/epoll/epoll.js:7:31
    at Object.<anonymous> (/opt/magic_mirror/modules/MMM-Buttons/node_modules/epoll/epoll.js:15:3)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)

i have already tried npm rebuild and ./node_modules/.bin/electron-rebuild
Does this has to do with the electron version? What can i possibly do to fix the issue?

Thank you for your support :)

excuse me, @Jopyth what electron version are you using? (It isn't specified in the package.json file)

@gonzonia
Copy link

I'm having the same issue.

@gonzonia
Copy link

So, I think I got it working (or at least loading, haven't tested my buttons yet). I removed the MMM-Buttons directory. Reinstalled. When I did the initial install I ran 'sudo npm install' and got the errror. Running 'npm install' after seemed to fix it.

@MuellerNicolas
Copy link
Author

So, I think I got it working (or at least loading, haven't tested my buttons yet). I removed the MMM-Buttons directory. Reinstalled. When I did the initial install I ran 'sudo npm install' and got the errror. Running 'npm install' after seemed to fix it.

Are you also using a docker container for magic mirror?

@gonzonia
Copy link

No. I'm running on a pi 4

@sdetweil sdetweil linked a pull request Oct 14, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants