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

`cmd` after creating `.bowerrc` how to add directory path

我正在使用 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

你应该使用:

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