2

My very first Raspberry and I want to install the smart-mirror. When running npm start, it launches the home screen but also this error:

Error: The module '/home/pi/smart- mirror/node_modules/grpc/node/extension_binary/grpc_node.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 48. This version of Node.js requires NODE_MODULE_VERSION 51. Please try re-compiling or re-
installing the module (for instance, using 'npm rebuild' or 'npm install')

I tried both but ending up with the same error.

How do I fix it?

2
  • Hi - Looks like you need to install node 48 to get that to work or upgrade that module to one which was built against 51 Commented Jan 5, 2017 at 21:40
  • Or, do as the instructions suggest, rebuild the module (which apparently contains native code) for your particular version. Commented Jan 5, 2017 at 23:08

2 Answers 2

1

This command will help you make sure curl is installed on your device

curl -sL https://raw.githubusercontent.com/evancohen/smart-mirror/master/scripts/pi-install.sh | bash

0

Node is always outdated on any Rpi distribution. (Because of backward compatibility, fast development cycles of Node, and somewhat lazy maintenance efforts by the Rpi org.)

So you need to update it manually and that is not trivial as you need to remove a few node packages with package manager (apt) first and then re-install them with npm. Follow the instructions in my post here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.