The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

jabrantes (5) [Avatar] Offline
I use OS X El Capitan (10.11.6), when I run the script it gives the following error: Can not find module 'serialport'. Has anyone had this or any suggestions?


575111 (1) [Avatar] Offline
install visual studio, python (build scripts are written in python) and
npm install serialport

cd node_modules

cd serialport

node-pre-gyp rebuild

.. but a friend of mine solved it this way
hope any of these will be helpful

tech expert
jabrantes (5) [Avatar] Offline
Thanks a lot, the problem really was in the serialport installation, looking carefully saw that it was a problem of writing right, had installed some components with the root user.