Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Mac OS上将zsh shell更改为git shell?_Git_Gulp_Zsh - Fatal编程技术网

如何在Mac OS上将zsh shell更改为git shell?

如何在Mac OS上将zsh shell更改为git shell?,git,gulp,zsh,Git,Gulp,Zsh,伙计们! 我想在Mac Os上将zsh shell更改为git shell。因为我在启动gulp builder时遇到问题= 问题不在于zsh,而在于您没有将gulp安装在shell搜索它的目录中。没有shell能够找到可执行的gulp程序,因为它不在$PATH环境变量中 解决方案1 如果仅对一个项目使用gulp,则可能已将其安装在当前项目中,并在项目目录中运行npm list-depth=0进行检查。如果是这种情况,请按以下方式运行: $ node_modules/.bin/gulp 解决方

伙计们! 我想在Mac Os上将zsh shell更改为git shell。因为我在启动gulp builder时遇到问题= 问题不在于zsh,而在于您没有将gulp安装在shell搜索它的目录中。没有shell能够找到可执行的gulp程序,因为它不在$PATH环境变量中

解决方案1 如果仅对一个项目使用gulp,则可能已将其安装在当前项目中,并在项目目录中运行npm list-depth=0进行检查。如果是这种情况,请按以下方式运行:

$ node_modules/.bin/gulp
解决方案2 如果您在许多项目中使用gulp,那么在帐户级别全局安装它可能会很有用。为此,请在任何目录中运行以下命令:

$ npm install -g gulp
确保您的主目录中已经有一个bin目录,请使用mkdir-p~/bin创建它,因为此命令会在其中创建指向gulp可执行文件的符号链接


这个符号链接使gulp可以作为一个程序从任何目录执行。

我认为mac os上不存在git shell。相反,请尝试在不运行的情况下使用命令gulp。谢谢!我试过了,但是这个命令gulp将我移动到另一个文件夹gulp..请看这个屏幕:和这个屏幕截图:这是因为zsh看到了这个文件夹,所以当你键入gulp时,它会将你移动到那个文件夹中。是否可以更改文件夹名称并重试?