Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'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 ?

like image 800
HussamDev Avatar asked Mar 21 '16 08:03

HussamDev


People also ask

How do you fix make is not recognized as an internal or external command operable program or batch file?

You can resolve this issue in three ways: First, use the full path of the executable file to launch the program. Second, add the program path to Windows environment variables. Finally, move the files to the System32 folder.

How do I install touch command on Windows?

There is a npm package called touch-cli which will allow us to use touch command. Open up your terminal and paste the following code. We install the touch-cli globally so we can use it in any folder. Now below we can see the touch-cli in action.

Does touch work in CMD?

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

What is touch command in CMD?

The touch command's primary function is to modify a timestamp. Commonly, the utility is used for file creation, although this is not its primary function. The terminal program can change the modification and access time for any given file. The touch command creates a file only if the file doesn't already exist.


2 Answers

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...

like image 158
cyberdenz Avatar answered Oct 08 '22 00:10

cyberdenz


Fixed after running this command:

npm install touch-cli -g 

After that I can run this:

touch .babelrc 
like image 26
Muhammad Awais Avatar answered Oct 08 '22 02:10

Muhammad Awais