我正在使用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
。
答案 0 :(得分:1)
您应该使用:
echo {"directory":"public/lib"} > .bowerrc