I am using ubuntu 14.04 LTS, I have nodejs (not node) and npm installed. 
I had installed gulp using npm install gulp -g. 
But my command gulp does not work, it runs silently returning nothing!

I am using ubuntu 14.04 LTS, I have nodejs (not node) and npm installed. 
I had installed gulp using npm install gulp -g. 
But my command gulp does not work, it runs silently returning nothing!

 
    
     
    
    I ran into the same problem today on Ubuntu 14.04 LTS. After debugging I noticed that I had accidentally installed nodejs and node using apt-get. After running
sudo apt-get remove node
the problem was fixed.
Hope this helps.
 
    
    Try linking the nodejs executable to node in the same path.
Something like:
sudo ln -s /usr/bin/nodejs /usr/bin/node
Depending on where your node executable is. You can find out with
which nodejs
 
    
    On my side, same symptom. What was missing is th CLI part of gulp:
sudo npm install --global gulp-cli
 
    
    When you have these kind of problem, my advice is to reinstall the module :
npm un -g gulp && npm un gulp
npm i -g gulp
npm i --save-dev gulp
These commands uninstall all gulp modules in local and global.
After, it installs gulp in global to use it in the command line, and in your local modules, because gulp needs it as well.
 
    
    You can Install gulp by using terminal(npm install -g gulp). But best way is use Synaptic Package Manager. This is old Software installer of Ubuntu. but now Ubuntu Introduce Ubuntu Software Center. 
Cz of I recommended Synaptic is when you install some software it will download some of helpers too. Ex if you want download gulp(Node.js) in search type node.js. It will show some other apps too. Select all and click apply. 
To download Synaptic
sudo apt-get install synapticTo install Node.js too.
To check node version
node --versionTo run gulp,  Go to the directory and just type gulp.
It will load all your project
To install complete node, follow these
sudo apt-get remove nodejs Check this as wellsudo apt-get remove npmsudo apt-get autoremovesudo apt-get updatesudo apt-get install nodejssudo apt-get install npmnow check command gulp
`
 
    
    even after uninstalling and installing nodejs and npm kept getting "/usr/bin/env: ‘node’: No such file or directory"
so i checked the node version (not nodejs): node -v got "The program 'node' is currently not installed. You can install it by typing: sudo apt install nodejs-legacy"
so i did install it: sudo apt install nodejs-legacy
and gulp works fine.
