-bash: gulp: command not found in Mac

白昼怎懂夜的黑 提交于 2019-12-03 04:43:50
binz

Just came across this issue myself and managed to solve the issue with:

$ npm uninstall --global gulp gulp-cli
$ rm /usr/local/share/man/man1/gulp.1
$ npm install --global gulp-cli

go to

cd /usr/local/bin
ls -las

if gulp is present delete that directory. (sudo rm -rf gulp) reinstall gulp-cli

===================================================================

if it is not working uninstall node, npm completely and try again

follow this link for step by step guide

node and npm uninstall step by step

I think you have gulp installed in your system, or at least you have some files related to gulp. Just do npm uninstall --global gulp gulp-cli and then try to install it again with npm install --global gulp-cli. If this doesn't work, I don't know what is happening on your system.

For me it worked only when I installed gulp using npm instead of yarn. Very weird..

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!