bower command not found windows

前端 未结 10 1119
谎友^
谎友^ 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" %*
    
    0 讨论(0)
  • 2020-12-02 06:01

    Uninstalled 64bit and Installing 32-bit version of nodejs along with git- 32bit worked!

    0 讨论(0)
  • 2020-12-02 06:05

    1. Type in windows cmd:

    for /f %a ('npm config get prefix') do setx path %a
    

    2. Reload cmd

    0 讨论(0)
  • 2020-12-02 06:06

    As others mentioned have to add bower into environment variables, but the easiest way to locate is just simply type in your npm location first, then use Browse File and locate bower on your system(you can search for it in search bar as well), because the location may vary for different users.

    0 讨论(0)
提交回复
热议问题