How do I name the .bowerrc file?

前端 未结 4 2020
借酒劲吻你
借酒劲吻你 2020-12-15 16:17

This MEAN-stack tutorial describes using Bower to install AngularJS in your public folder. One of the steps describes creating a file called \".bowerrc\" in your test-app f

相关标签:
4条回答
  • 2020-12-15 17:00

    Simply rename the file you created:

    C:\project> ren bowerrc .bowerrc
    
    0 讨论(0)
  • 2020-12-15 17:01

    Another way to accomplish this is through Notepad++.

    • Create the file in Notepad++
    • Set the encoding to "Encoding in ANSI" (click "Encoding" in the menu bar)
    • Save the file as .bowerrc (change the "Save as type:" to . which is one list item up from *.txt)
    0 讨论(0)
  • 2020-12-15 17:04

    To create a file that starts with a "." in Windows, you just need to add a trailing ".".

    So, simply name your file ".bowerrc." instead of ".bowerrc".

    See https://superuser.com/questions/64471/create-rename-a-file-folder-that-begins-with-a-dot-in-windows for more information and more detailed solution if this doesn't work for you.

    0 讨论(0)
  • 2020-12-15 17:10

    on the command line (make sure to cd into your working directory), issue this command:

    touch .bowerrc
    

    This will also work for other files common to webdev like .htaccess and .gitignore

    Note: If you haven't installed git bash for windows, you may not have support for the touch command. In that case (as mentioned in one of the comments here), the easiest way to accomplish this is via the cli with:

    echo "" > .bowerrc
    
    0 讨论(0)
提交回复
热议问题