"touch" 命令拼写错误或无法在 windows 上的 git 命令中找到
The "touch" command is either mispelled or could not be found on git command on windows
我正在尝试 运行 以下命令:
“触摸 hello.html”
我收到的错误是:“触摸命令拼写错误或无法找到”
我试过-“npm install touch-cli -g”
你能帮我吗?
我建议您使用 GitBash 来执行此类命令。在 git bash 中,“touch”、“vim”、“nano”等命令无需单独安装即可使用。
否则,请尝试重新启动系统并检查 npm 全局目录是否在您的路径环境变量中。
我正在尝试 运行 以下命令: “触摸 hello.html” 我收到的错误是:“触摸命令拼写错误或无法找到”
我试过-“npm install touch-cli -g”
你能帮我吗?
我建议您使用 GitBash 来执行此类命令。在 git bash 中,“touch”、“vim”、“nano”等命令无需单独安装即可使用。
否则,请尝试重新启动系统并检查 npm 全局目录是否在您的路径环境变量中。