Gulp zsh: command not found: gulp

简介: Gulp zsh: command not found: gulp
  • 明明安装了 gulp,但是为什么执行 gulp 命令却在控制台输出 zsh: command not found: gulp,可能是因为 gulp 没有全局安装。
  • 在控制台输入下面命令,如果输出 gulp not found,说明 gulp 的确没有全局安装。
$ which gulp
  • 全局安装
$ npm i -g gulp
  • 安装好之后,再次输入 $ which gulp,就会出现 gulp 本地地址,说明安装成功了。
  • 然后就可以正常使用命令了!。
相关文章
|
开发工具
成功解决 zsh: command not found
成功解决 zsh: command not found
1960 0
|
12月前
|
Shell
bash: accelerate: command not found
bash: accelerate: command not found
1982 3
autoreconf: command not found
autoreconf: command not found
354 0
g++: command not found
g++: command not found
57 0
|
C语言
configure:3855: gcc -V >&5 gcc: error: unrecognized command line option '-V'
configure:3855: gcc -V >&5 gcc: error: unrecognized command line option '-V'
532 0
|
Linux Shell Windows
Shell - line 2: $‘\r‘: command not found
拷贝脚本提交后报错 line 2: $'\r': command not found,但是这是别的同学可以运行后发给我的,随后开始排查。安装 dos2unix 需要使用 yum。安装 yum 需要使用 brew。
422 0
Shell - line 2: $‘\r‘: command not found
command exec make executable file not found in %PATH%
command exec make executable file not found in %PATH%
204 0
command exec make executable file not found in %PATH%
|
移动开发 Linux Shell
$‘\r‘: command not found的解决方法
在Linux系统中,运行Shell脚本,出现了如下错误: one-more.sh: line 1: $'\r': command not found 1 出现这样的错误,是因为Shell脚本在Windows系统编写时,每行结尾是\r\n,而在Linux系统中行每行结尾是\n,所以在Linux系统中运行脚本时,会认为\r是一个字符,导致运行错误。
1268 0