Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'gulp' is not recognized

I'm completely new to Gulp but I wanted to try it out. Due to restrictions/admin rights on my desktop and moving about a lot, I need things portable, and so am currently running everything I need off a stick.

I've browsed similar posts but none of the solutions seemed to solve the problem I'm having.

I used the following commands in cmd with Ruby to install gulp -

npm install -g gulp

and then

npm install --save-dev gulp

I'm seeing the folders and files, but when I run gulp -v in cmd I get the following:

" 'gulp' is not recognized as an internal or external command, operable program or batch file."

I'm not sure if this is a problem related to the fact I don't have admin rights for this computer or not. Any help so I can troubleshoot further would be much appreciated!

E:\xampp\htdocs\wordpress>PATH
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32
\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\RailsInstaller\Git\cmd;C:\R
ailsInstaller\Ruby1.9.3\bin

Thanks

like image 502
mkultron Avatar asked Jan 13 '15 10:01

mkultron


People also ask

Why is gulp not recognized?

Or: The term 'gulp' is not recognized as the name of a cmdlet, function, script file, or operable program. This usually means that you need to install the Gulp CLI globally on your computer and check that npm is added to your Path environment variables.

How do I know if gulp is installed?

First run npm -g install gulp-cli then run gulp -v. Alternatively, you can just run npm list gulp.

How do I install gulp globally?

To install the Gulp CLI globally, on your command line, run npm install gulp-cli -g . The -g flag means npm will install the package in the global npm directory, so you can run the gulp command from any directory.


1 Answers

My Full Response

Solution

  1. Re-download nodejs
  2. npm install -g gulp
  3. gulp -version
like image 106
christo8989 Avatar answered Oct 24 '22 05:10

christo8989