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

Example 1: 'touch' is not recognized as an internal or external command,

npm install touch-cli -g

Example 2: react js 'touch' is not recognized as an internal or external command,

Fixed after running this command:
npm install touch-cli -g

After that I can run this:
>touch index.html  
>touch App.js  
>touch main.js  
>touch webpack.config.js  
>touch .babelrc  

/*
I Hope it will Help you.
Namaste
Stay Home Stay Safe
*/

Example 3: cdm touch is not recognized as an internal or external cdm command, operable program or batch file.

touch test.html.

Example 4: touch command not recognized in windows

type nul > your_file.txt

Example 5: touch command not recognized in windows

echo.> your_file.txt