Resolving "RangeError: Trying to access beyond buffer length" with Johnny-Five
If you are getting an error about “RangeError: Trying to access beyond buffer length” when trying to use Johnny-Five with Intel Edison, open up your package file and change the Johnny-Five target to “.” Then run “npm...
Tags
- nodejs
- intel-edison
- intel-galileo
Originally published at rexstjohn.com on September 9, 2015. Recovered from the Internet Archive.
If you are getting an error about “RangeError: Trying to access beyond buffer length” when trying to use Johnny-Five with Intel Edison, open up your package file and change the Johnny-Five target to “*.” Then run “npm install.” I believe this error happens with some of the older sample applications that are targeting an older Johnny-Five, you need to make sure Node.js is getting the very latest version.
RangeError: Trying to access beyond buffer length
at checkOffset (buffer.js:582:11)
at Buffer.readUInt8 (buffer.js:588:5)
at Galileo. (/home/root/.node_app_slot/node_modules/edison-io/node_modules/galileo-io/lib/galileo.js:712:24)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)