Computer doesn't recognize gulp after installation
See original GitHub issueThis tracker is for bug reports only.
Before opening an issue, please make sure you’ve checked the following:
-
For support requests, please use Stack Overflow (stackoverflow.com) or Gitter (see the README).
-
If the bug is in a plugin, open an issue on the plugin repository, not the gulp repository.
-
If you’re getting a deprecated module warning, don’t worry about it: we’re aware of it and it’s not an issue. To make it go away, update to Gulp 4.0.
-
If you’re asking about the status of Gulp 4, please don’t! You can see the remaining issues on the gulp4 label: https://github.com/gulpjs/gulp/issues?q=is%3Aissue+is%3Aopen+label%3Agulp4
What were you expecting to happen? For the command to run my gulp tasks What actually happened? I got an error. gulp command not … So i had to use npx gulp Please post a sample of your gulpfile (preferably reduced to just the bit that’s not working)
gulp.task(function () {});
What version of gulp are you using? 2 i guess What versions of npm and node are you using? Node 10.x Npm 6
Why is this happening is it my computer or npm?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
I got the same error. I’m on macOS High Sierra version 10.13.6. I installed gulp, uninstalled gulp, re-installed Node.js, npm. Checked all my version:
node -v: v10.15.0 npm -v: 6.41 nps -v: 6.41
Reinstalled gulp: $ sudo npm install --global gulp-cli
$ npx mkdirp my-project
$ cd my-project
$ npm init
$ npm install --save-dev gulp
$ gulp --version
$ npx gulp -v
After searching and reading for a day 1/2 I discovered HERE that you need to type “npx” – WHY?
Thanks for the reply. I think the error is with how I configured the path to call npm global modules. I removed everything related to Node, NPM and reinstalled to make it work.