Give drew's suggestion a go first.
I typed all this out then pressed the back button on my mouse
:@
sudo raspi-config
Set it to not go to desktop on boot
http://elinux.org/RPi_raspi-config#boot_behaviour_-_Start_desktop_on_boot.3F
I can't remember if Raspbian does an auto-login, if it doesn't use one of drew's suggestions for that.
sudo nano /usr/local/bin/lonely
Paste in
Code:
#!/bin/sh
#
while true; do
node /home/pi/twitter_stream/index.js
sleep 5
done
sudo chmod +x /usr/local/bin/lonely
to makes it executable
sudo crontab -e
add the line
@reboot
/usr/local/bin/lonely
save and exit
reboot
This may work, or may need tweaking slightly.