bower command not found windows

前端 未结 10 1178
谎友^
谎友^ 2020-12-02 05:21

I am having huge problems trying to use bower (to install foundation 5) or get anything bower related to work on the command line.

I\'ve installed

  • ruby
10条回答
  •  难免孤独
    2020-12-02 05:59

    If above solutions don't work. I think you should specify the absolute path to use the bower in command prompt. In my app folder, I just call

    C:\Users\yourusername\AppData\Roaming\npm\bower.cmd install
    

    This is content in my bower.cmd. It looks like my windows can't recognize the ~dp0 variable,

    node  "C:\Users\yourusername\AppData\Roaming\npm\node_modules\bower\bin\bower" %*
    

提交回复
热议问题