`cmd`创建`.bowerrc`之后如何添加目录路径

时间:2015-01-20 17:12:37

标签: windows bower

我正在使用cmd命令创建.bowerrc文件。但我尝试将directory path添加到创建的文件中,如下所示:

D:\Tutts\Projects\Scratch>touch .bowerrc

D:\Tutts\Projects\Scratch>{"directory":"public/lib"}
The system cannot find the path specified.

D:\Tutts\Projects\Scratch>.bowerrc {"directory":"public/lib"}

D:\Tutts\Projects\Scratch>

D:\Tutts\Projects\Scratch>edit .bowerrc
'edit' is not recognized as an internal or external command,
operable program or batch file.

D:\Tutts\Projects\Scratch>

但是这一切都失败了..在文件中添加directory对象的正确方法是什么?

我正在使用windows7

1 个答案:

答案 0 :(得分:1)

您应该使用:

echo {"directory":"public/lib"} > .bowerrc