Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing gulp to windows 10

I've installed gulp

npm install --global gulp

and set envidoment variable:

 - variable: GULP_HOME
 - Value: C:\Users\myaccount\AppData\Roaming\npm\node_modules\gulp  (..\gulp is folder)

in environment variables And try to run "gulp". Then i get a message in cmd:

C:\myaccount\workspace\todoparrot>gulp
[09:47:24] Local gulp not found in C:\myaccount\workspace\todoparrot

How to set gulp to work?

like image 851
user2301515 Avatar asked Oct 10 '15 06:10

user2301515


People also ask

Why gulp is not installed globally?

Gulp requires two parts to work in any project:the gulp object that has the 5 functions attached, ( src , dest , watch , run , task ). this is installed locally for a project, as well as all the plugins necessary, because it is included in your taskfiles such as gulpfile. js . Its a locally imported module.

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.


2 Answers

I installed gulp globally, then used the link command to link the current directory to the global installation. I used the command -

npm link gulp

like image 167
cs123 Avatar answered Oct 06 '22 06:10

cs123


You must locally install gulp to that folder. Use the following command:

npm install gulp

if it is not fixed, try to install it globally:

npm install gulp-cli -g
like image 31
fsf Avatar answered Oct 06 '22 05:10

fsf