'touch' is not recognized as an internal o

2020-02-08 10:14发布

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 ?

9条回答
爷的心禁止访问
2楼-- · 2020-02-08 10:56

Just run it through the GitBash terminal on windows and it works fine

查看更多
仙女界的扛把子
3楼-- · 2020-02-08 10:57

enter image description here

ex: type nul >test.html in windows CMD & another one ways is

echo.>test.html

both are working 100% fine

查看更多
ゆ 、 Hurt°
4楼-- · 2020-02-08 10:59

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

查看更多
登录 后发表回答