Search code examples
bower-install

How to change bower's installation folder?


When I try to install bower in my working project folder using npm install -g bower command in Windows 7 it is installed in another folder. I delete that folder and try to reinstall it. But again automatically that folder is created and bower is installed within that folder. See the attached image. I want to install bower in the otenro folder. But each and every time it is installed in angular folder. How do I change that?


Solution

  • To see your default install location:

    npm list -g
    

    To change your default install location:

    npm config set prefix "C:\My\New\Location"
    

    So after changing the install location just install bower and it will be installed there. This thread and this thread can help in any further investigation.