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

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


if you are using node.js just use npm to install it on Windows:

C:\npm install touch-cli -g

it will install the command line interface for touch, you can then use it the same as unix...


Fixed after running this command:

npm install touch-cli -g

After that I can run this:

touch .babelrc


The command you're trying to run is a unix/linux based command so it won't work in Windows.

All it does is update the modified timestamps of a file.

There's another question on here that gives you an alternative for Windows: https://superuser.com/questions/10426/windows-equivalent-of-the-linux-command-touch/764716