I tried the same before replying.
npm ls graceful-fs
Which Resulted -
/Users/srilathakondapalli
├─┬ appium@1.5.3
│ ├─┬ appium-fake-driver@0.1.10
│ │ └─┬ babel-core@5.8.24
│ │ └─┬ regenerator@0.8.35
│ │ └─┬ commoner@0.10.4
│ │ └── graceful-fs@4.1.4
│ └─┬ fsevents@1.0.14
│ └─┬ node-pre-gyp@0.6.29
│ └─┬ tar@2.2.1
│ └─┬ fstream@1.0.10
│ └── graceful-fs@4.1.4
└─┬ wd@1.0.0
└─┬ archiver@1.1.0
└─┬ archiver-utils@1.3.0
└── graceful-fs@4.1.9
Then I ran command to install gulp - sudo npm install gulp -g
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
/usr/local/bin/gulp -> /usr/local/lib/node_modules/gulp/bin/gulp.js
/usr/local/lib
└── gulp@3.9.1
Then I tried to update minimatch : npm install -g minimatch@3.0.2
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
/usr/local/lib
└─┬ minimatch@3.0.2
└─┬ brace-expansion@1.1.6
├── balanced-match@0.4.2
└── concat-map@0.0.1
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "minimatch@3.0.2"
npm ERR! node v4.4.7
npm ERR! npm v3.10.9
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/srilathakondapalli/npm-debug.log