I have now duplicated a working install flow for the Pi3 and Pi2 that throws virtually no errors and installs more up to date versions of node and npm and node-red.
The first thing I did is NOT use the Raspian Lite build. Instead I installed Raspian Jessie full version to the sd card and proceeded with the following steps:
node-red-stop
sudo apt-get remove nodered
sudo apt-get remove nodejs nodejs-legacy
sudo apt-get remove npm # if you installed npm
Both Pi's ran and could see all the devices, but the Pi2 could not write any data.
I will now try another bluetooth dongle to see if that is the problem.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The dongle is a Trust 18187 bluetooth 4 dongle.
I have now duplicated a working install flow for the Pi3 and Pi2 that throws virtually no errors and installs more up to date versions of node and npm and node-red.
The first thing I did is NOT use the Raspian Lite build. Instead I installed Raspian Jessie full version to the sd card and proceeded with the following steps:
node-red-stop
sudo apt-get remove nodered
sudo apt-get remove nodejs nodejs-legacy
sudo apt-get remove npm # if you installed npm
curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get install -y build-essential python-rpi.gpio nodejs
node -v
v4.7.2
npm -v
2.15.11
sudo npm -g install npm node-gyp
npm -v
4.0.5
sudo npm cache clean
sudo npm install -g --unsafe-perm node-red
sudo apt-get install mosquitto mosquitto-clients
sudo apt-get install bluetooth libbluetooth-dev libudev-dev
git clone https://github.com/espruino/EspruinoHub
cd EspruinoHub
npm install
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
./start.sh
To get node-red running from the command line:
node-red-pi --max-old-space-size=128
Both Pi's ran and could see all the devices, but the Pi2 could not write any data.
I will now try another bluetooth dongle to see if that is the problem.