The pid you're looking at is for the grep node
process, which is why it's different every time. There doesn't appear to be a node process running, so your problem is elsewhere. Without seeing any of your code, we can't really help you further.
[updated]
The error isn't very verbose, but it looks like it's trying to spawn a sub-process and failing. If you try spawn a sub-process for a command for an executable that doesn't exist, this is the type of error that will occur. I'm going to take a wild guess here and assume you haven't installed one or more dependencies required by titanium, or your environment PATH does not contain the directory to the dependant executables.
Have you read this page: http://docs.appcelerator.com/titanium/latest/#!/guide/Setting_up_the_Titanium_CLI