Bower, Grunt & zsh: command not found:

前端 未结 6 502
忘了有多久
忘了有多久 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:47

    I couldn't get the above to work. Problem was that I had just reinstalled my Mac and forgotten to re-install grunt.

    You can test that grunt is actually installed and working properly outside of zshell by going back to bash with bash -l and running grunt.

    If grunt is throwing the same error you can install grunt by running:

    sudo npm install -g grunt-cli 
    

    Run zsh to get back to zshell.

提交回复
热议问题