phonegap create not working

cordova, node.js, ubuntu

Solution

Reply with an output of the following commands:

node --version
npm --version

Problem

I installed node.js on my ubuntu 14.04 using `sudo apt-get install nodejs` then I installed npm using `sudo apt-get install npm` then I tried to install phonegap using npm `install -g phonegap` everything seemed fine but when I try to phonegap create test nothing happens, It just returns non zero that is error but doesn't display any error. I did exactly how it told me to, still no luck! Can any one tell what am I missing?

Original source