Local gulp installation not found even after installing npm install -g gulp

I tried installing gulp on

npm install -g gulp 

The result seems something like this. (I missed some magazines)

 npm http 304 https://registry.npmjs.org/string_decoder npm http 304 https://registry.npmjs.org/lodash._htmlescapes /usr/bin/gulp -> /usr/lib/node_modules/gulp/bin/gulp.js gulp@3.6.2 /usr/lib/node_modules/gulp β”œβ”€β”€ tildify@0.2.0 β”œβ”€β”€ pretty-hrtime@0.2.1 β”œβ”€β”€ deprecated@0.0.1 β”œβ”€β”€ archy@0.0.2 β”œβ”€β”€ semver@2.2.1 β”œβ”€β”€ chalk@0.4.0 (has-color@0.1.7, ansi-styles@1.0.0, strip-ansi@0.1.1) β”œβ”€β”€ orchestrator@0.3.3 (sequencify@0.0.7) β”œβ”€β”€ liftoff@0.9.8 (extend@1.2.1, minimist@0.0.8, resolve@0.6.3, findup-sync@0.1.3) β”œβ”€β”€ vinyl-fs@0.1.4 (graceful-fs@2.0.3, map-stream@0.1.0, mkdirp@0.3.5, vinyl@0.2.3, glob-stream@3.1.9, glob-watcher@0.0.6) └── gulp-util@2.2.14 (lodash._reinterpolate@2.4.1, dateformat@1.0.7-1.2.3, minimist@0.0.8, vinyl@0.2.3, multipipe@0.0.2, through2@0.4.1, lodash.template@2.4.1) 

In the above script, I see the line / usr / bin / gulp β†’ /usr/lib/node_modules/gulp/bin/gulp.js which, I think, makes simulink in the bin folder. So I have to get gulp globally, but I get this error.

 No local gulp install found in /var/www/ksapp 

Any idea why I am getting this error.

thank

+83
linux ubuntu gulp
Apr 25 '14 at 5:27
source share
4 answers

As stated in the document , you should install it globally (you did this) and add it to your dev deps project (locally):

 npm install gulp --save-dev 
+99
Apr 25 '14 at 9:39
source share

I ran into the same problem. Got it by creating a link

 npm link gulp 
+31
Mar 08 '15 at 16:15
source share

I recently encountered the error message "Local gulp not found". I managed to do this by creating a symbolic link from the global node_modules directory to the local project directory where my gulpfile.js is located.

-2
Jun 30 '14 at 16:54
source share

Check the / home / username / .npm directory: the groups / file owner may be root. Change to username:

 chown -R username.username /home/username/.npm 
-3
Jun 10 '14 at 11:05
source share



All Articles