Bower, Grunt & zsh: command not found:

前端 未结 6 484
忘了有多久
忘了有多久 2021-02-01 21:08

I have installed Grunt & Bower & I\'m using ZSH.

when I type bower --help or grunt anything I get zsh: command not found: bower

6条回答
  •  囚心锁ツ
    2021-02-01 21:36

    When you install grunt (bower), terminal tell you directory. For those using a ZSH shell, add this to .zshrc:

    export PATH=/usr/you/directory/npm/bin:$PATH,
    

    I find it using:

    /lib/node_modules
    export PATH=/usr/lib/node_modules/npm/bin:$PATH
    

提交回复
热议问题