Reputation: 5870
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!
Upvotes: 43
Views: 55466
Reputation: 121
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.
Upvotes: 0
Reputation: 38584
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 synaptic
To install Node.js
too.
To check node version
node --version
To 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 npm
sudo apt-get autoremove
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
now check command gulp
`
Upvotes: 2
Reputation: 1678
On my side, same symptom. What was missing is th CLI part of gulp:
sudo npm install --global gulp-cli
Upvotes: 21
Reputation: 409
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.
Upvotes: 40
Reputation: 1371
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
Upvotes: 34
Reputation: 655
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.
Upvotes: 17