bower command not found

前端 未结 5 1268
情书的邮戳
情书的邮戳 2020-12-02 04:20

I tried to install twitter bower on my Mac, and I used

npm install bower -g

Then I tried bower --help, and the output was

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 04:56

    I am almost sure you are not actually getting it installed correctly. Since you are trying to install it globally, you will need to run it with sudo:

    sudo npm install -g bower
    

提交回复
热议问题