Windows equivalent of 'touch' (i.e. the node.js way to create an index.html)

后端 未结 19 2361
一整个雨季
一整个雨季 2020-11-28 00:47

On a windows machine I get this error

\'touch\' is not recognized as an internal or external command, operable program or batch file.

19条回答
  •  孤街浪徒
    2020-11-28 01:32

    From the Terminal of Visual Code Studio on Windows 10, this is what worked for me to create a new file:

    type > hello.js
    echo > orange.js
    ni > peach.js
    

提交回复
热议问题