This is a simple script that reads all eight analog channels of an MCP3008 each second and outputs the result to the console.
I created this script to ease debugging of the MCP3008 ADC connected to my Raspberry Pi.
If you need to troubleshoot the SPI connection in itself you can check out my guide how to test SPI through the loopback "debug mode" https://mikaelleven.wordpress.com/2015/12/10/troubleshooting-spi-on-raspberry-pi-nodejs/.
Download this gist and run the following command
npm install rpio
sudo node spi_dump.js
Try to explicitly set chip select, chip select polarity and clock divider (the commented lines below). You could also short circuit between ADC pin and either HIGH (+3,3V) or LOW (ground). You should get a solid reading of either 1023 or 0.
If nothing of the above helps, could you please provide a screenshot or some more detailed information about what happens?