E
E
Ejex Xeffer2015-11-04 12:05:44
Windows
Ejex Xeffer, 2015-11-04 12:05:44

What does the touch command do under windows?

Forgive the beginner, but how do you get the gulpfile.js touch command to work? I saw this command in the bower tutorial, I wanted to use it, but cmd gives out something incomprehensible without running this command.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
Konstantin Kitmanov, 2015-11-04
@Xeffer

On unix-like operating systems, touch either updates the file's last modified date or creates a new empty file. Under Windows, there is no such command (out of the box). Create this file from your editor/IDE/file manager (you can create guplfile.txt in explorer and rename it to gulpfile.js).
You can install git (you still need it), it comes with the so-called. git bash, which has all or almost all unix utilities.

I
Ivanq, 2015-11-04
@Ivanq

There is no touch in cmd.
True, here is a workaround:
1. Create a touch.bat file in the C:\Windows folder
2. Write to it copy /b %1 +,,
3. Enjoy the long-awaitedtouch gulpfile.js

P
pgood, 2017-02-02
@pgood

There is touch for NodeJS https://www.npmjs.com/package/touch
Install and enjoy
npm install touch -g

A
AVBanin, 2020-10-18
@AVBanin

In the Linux console, it is possible to work with windows using this command. To do this, you need to put some kind of console that supports this command (and Linux commands in general) on the computer.
I am using cmder . In the main settings by default or when starting a new console window, you must set bash:bash - enable the Linux command interpreter. This team is working on it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question