Skip to content

Commit a552248

Browse files
author
AJ Keller
authored
Merge pull request #143 from octopicorn/patch-1
note about serialport node error
2 parents b656945 + 5013112 commit a552248

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ Python researcher or developer? Check out how easy it is to [get access to the e
3939
```
4040
npm install openbci
4141
```
42+
#### serialport dependency
43+
If you encounter this error when trying to run:
44+
```
45+
Error: The module '/path/to/your/project/node_modules/serialport/build/Release/serialport.node'
46+
was compiled against a different Node.js version using
47+
NODE_MODULE_VERSION 48. This version of Node.js requires
48+
NODE_MODULE_VERSION 51. Please try re-compiling or re-installing
49+
the module (for instance, using `npm rebuild` or`npm install`).
50+
```
51+
...the issue can be resolved by running:
52+
```
53+
npm rebuild --build-from-source
54+
```
4255
### <a name="tldr"></a> TL;DR:
4356
Get connected and [start streaming right now with the example code](examples/getStreaming/getStreaming.js).
4457

0 commit comments

Comments
 (0)