[英]The "touch" command is either mispelled or could not be found on git command on windows
I am trying to run the below command: "touch hello.html" The error I am getting is: "touch command is either mispelled or could not be found"我正在尝试运行以下命令:“touch hello.html”我得到的错误是:“touch 命令拼写错误或找不到”
I tried- "npm install touch-cli -g"我试过-“npm install touch-cli -g”
Please can you help me here?请问你能帮我吗?
I would recommend you to use GitBash to execute this such commands.我建议你使用GitBash来执行这样的命令。 In git bash commands such "touch", "vim", "nano" etc. should work without having to install them separate.
在 git bash 中,“touch”、“vim”、“nano”等命令无需单独安装即可工作。
Otherwise, try to restart your system and check if the npm global directory is in your path environment variable.否则,请尝试重新启动系统并检查 npm 全局目录是否在您的路径环境变量中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.