I’ve been banging my head against the wall trying to get LaserWeb setup on an RPi 3, and I failed at the first hurdle - installing Node!
If you follow the instructions for installing to Raspberry Pi, on Raspbian Stretch, npm doesn’t get installed - and if you then try to install it through apt, the version that gets installed is 1.something - far too low for LaserWeb to use.
I’ve found a workaround - this replaces the first section in the guide (" Install Node 6.x"):
wget -O - https://raw.githubusercontent.com/audstanley/NodeJs-Raspberry-Pi/master/Install-Node.sh | sudo bash
This will initially install the latest version of Node, but we can install our preferred version by then running:
sudo node-install -v 6.17.1
This will install the versions that we need, including npm. This is what versions get installed:
The only other issue I found was with the config.js file - I needed to change the first line, changing .load into .config instead (this is an issue with the new dotenv library, not directly related to the node version)
So now I have a happily running Raspberry Pi running lw-comm-server fine, and hopefully this will help others trying to do the same.