From 5013112b36bcdb30d194e5e6877bf6f4eaff7de9 Mon Sep 17 00:00:00 2001 From: octopicorn Date: Thu, 23 Mar 2017 20:40:59 -0700 Subject: [PATCH] note about serialport node error --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 574c4e3..0e4f94f 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,19 @@ Python researcher or developer? Check out how easy it is to [get access to the e ``` npm install openbci ``` +#### serialport dependency +If you encounter this error when trying to run: +``` +Error: The module '/path/to/your/project/node_modules/serialport/build/Release/serialport.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`). +``` +...the issue can be resolved by running: +``` +npm rebuild --build-from-source +``` ### TL;DR: Get connected and [start streaming right now with the example code](examples/getStreaming/getStreaming.js).