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

I work with laravel 5 , when i type in windows cmd this command "touch storage\database.sqlite" this error message rise 'touch' is not recognized as an internal or external command, operable program or batch file. any hint to solve it ?


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

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


You have to install Touch CLI, Run below command in CLI

npm install touch-cli -g

You can just use echo> in windows cmd i.epath/file.sqlite