0

I carefully followed Andy Sigler's tutorial on how to setup node.js on Arduino Yun. But I'm getting this error "Cannot find module 'serialport'". my node.js file is in mnt/sda1/arduino/node folder. and I have installed node-serialport successfully through ssh. Kindly helpc

asked Jan 19, 2017 at 13:39
2
  • Did you check that post "cannot find module 'serialport' using Node.js and Johnny-Five" ? Commented Jan 19, 2017 at 17:18
  • @J. Piquard I'm trying to use node.js in Arduino Yun. The post you mentioned is regarding installing node.js on a computer. It's not helpful..Thanks anyways. Commented Jan 20, 2017 at 1:51

1 Answer 1

0

I solved the problem by following these steps:

Make a folder node_modules in mnt/sda1/

cd /mnt/sda1

wget http://wiki.linino.org/lib/exe/fetch.php?media=wiki:serialport-1.6.1_mips-25-ubuntu.tar.gz -O serialport-1.6.1_mips-25-ubuntu.tar.gz

run $ tar xvf serialport-1.6.1_mips-25-ubuntu.tar.gz -C /mnt/sda1/node_modules

answered Jan 22, 2017 at 17:08

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.