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!
the gulp-cli , because this is a command line utility, that can be called from anywhere on your computer. Its a globally accessible cli command. You console needs to be able to see it. You do not import this.
To solve the error "'gulp' is not recognized as an internal or external command, operable program or batch file", install the gulp-cli package globally by running npm install -g gulp-cli , restart your terminal and make sure your PATH environment variable is set up correctly.
First run npm -g install gulp-cli then run gulp -v. Alternatively, you can just run npm list gulp.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With