这个MEAN-stack教程描述了使用Bower在公共文件夹中安装AngularJS.其中一个步骤描述了在test-app文件夹中创建名为".bowerrc"的文件.但是,Windows不允许您创建没有名称的文件.如何在Windows系统上完成此操作?
Bri*_*sch 51
在命令行上(确保cd进入您的工作目录),发出以下命令:
touch .bowerrc
Run Code Online (Sandbox Code Playgroud)
这也将合作,共同向Webdev的像其他文件.htaccess和.gitignore
注意:如果尚未为Windows安装git bash,则可能不支持该touch命令.在这种情况下(如本文其中一条评论中所述),最简单的方法是通过cli:
echo "" > .bowerrc
Run Code Online (Sandbox Code Playgroud)
Pet*_*K68 30
创建以"."开头的文件.在Windows中,您只需添加一个尾随的".".
因此,只需将文件命名为".bowerrc".而不是".bowerrc".
有关详细信息,请参阅https://superuser.com/questions/64471/create-rename-a-file-folder-that-begins-with-a-dot-in-windows,如果这不起作用,请参阅更详细的解决方案您.
另一种实现此目的的方法是通过Notepad ++.
| 归档时间: |
|
| 查看次数: |
21525 次 |
| 最近记录: |