You'll need a couple of well-supported packages (NodeJS and libudev-dev)
wget http://node-arm.herokuapp.com/node_latest_armhf.deb && sudo dpkg -i node_latest_armhf.deb
sudo apt-get install -y libudev-dev
You can take the easy route:
wget https://github.com/ekarak/openzwave-debs-raspbian/raw/master/v1.4.1/libopenzwave1.3_1.3.532.ge3defea_armhf.deb
wget https://github.com/ekarak/openzwave-debs-raspbian/raw/master/v1.4.1/libopenzwave1.3-dev_1.3.532.ge3defea_armhf.deb
sudo dpkg -i libopenzwave*.deb
Or you can choose Hercules' path of blight and
Download the OpenZWave Unix source from the official website
wget http://old.openzwave.com/downloads/openzwave-1.4.1.tar.gz
tar zxvf openzwave-*.gz
cd openzwave-* && make && sudo make install
export LD_LIBRARY_PATH=/usr/local/lib
make it permanent by adding it to /etc/environment
sudo sed -i '$a LD_LIBRARY_PATH=/usr/local/lib' /etc/environment
At this step you can ensure Open-Zwave library is correctly installed with
MinOZW
cd /<project directory>
npm install openzwave-shared
wget https://raw.githubusercontent.com/OpenZWave/node-openzwave-shared/master/test2.js
node test2.js