Gulp and gulp plugins are installed and managed via npm, the Node.js package manager. To install gulp, first ensure the npm is installed properly. And then run following command to install gulp globally on your system.
npm install --global gulp
Read this excellent post on “Why do we need to install gulp globally and locally”?
And also install gulp in your project devDependencies:
npm install --save-dev gulp
--save-dev option writes devDependencies to “package.json”. Please make sure when you run this command, your package.json is created. If not create, then use npm init command to create this file.