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
#1
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?

Thanks

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

then
cd node_modules

cd serialport

node-pre-gyp rebuild

.. but a friend of mine solved it this way
https://arduino.stackexchange.com/questions/33566/error-cannot-find-module-serialport-node-js-arduino-yun
hope any of these will be helpful

cheers
tech expert
https://jetwriters.com
jabrantes (5) [Avatar] Offline
#3
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.