bower command not found windows

前端 未结 10 1174
谎友^
谎友^ 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:52

    I bumped into this problem after npm install -g bower too. I solved the problem by adding npm's binary folder to my path.

    Here are some helpful hints for doing that:

    1. Find the location of your npm global binaries: npm config get prefix. This path may look something like C:\Users\username\AppData\Roaming\npm (or C:\ProgramData\chocolatey\lib\nodejs.commandline.X.XX.XX\tools if you use Chocolatey).
    2. Add the path from step 1 to your Path.

      • Open the Windows Control Panel, search for environment, then click on either edit environment variables for your account, or Edit the system environment variables`.

      • Find the variable named Path or PATH, or create one if it doesn't exist.

      • Paste the path from step 1 here (; delimited).

      • You may need to restart your command prompt window.

    3. You should now be able to enter bower commands.

提交回复
热议问题