From f70f4c4fffa3be4c19e245015bdcc91808ae5cc6 Mon Sep 17 00:00:00 2001 From: Bart Date: Sun, 29 Jan 2017 18:39:44 +0100 Subject: [PATCH] remove firmata/node_modules path in require('serialport') (#271) serialport is not found when installing the npm module local (instead of 'npm install node-red-node-arduino -g') --- hardware/Arduino/35-arduino.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/Arduino/35-arduino.js b/hardware/Arduino/35-arduino.js index 5a475d51..6526d6cf 100644 --- a/hardware/Arduino/35-arduino.js +++ b/hardware/Arduino/35-arduino.js @@ -3,7 +3,7 @@ module.exports = function(RED) { "use strict"; var Board = require('firmata'); - var SP = require('firmata/node_modules/serialport'); + var SP = require('serialport'); // The Board Definition - this opens (and closes) the connection function ArduinoNode(n) {