There is an npm package called touch-cli which will allow us to use touch command.
Open up your terminal(command prompt) and paste the following code in it.
npm install touch-cli -g
Then run the touch command
touch index.js