我正在尝试设置一个远程生成服务器以与Visual Studio Online进行持续集成。在我的情况下,我运行npm install来设置环境以安装tns
工具,因此可以运行tns build
,但是我收到一条错误消息,说tns不是可识别的命令。我相信我需要重新启动命令提示符才能使其识别新安装的命令。
如何从命令行执行此操作?
我尝试了这个:
taskkill / IM cmd.exe
但是我说错了The system cannot find the path specified
。
这是完整的输出:
******************************************************************************
Starting task: Run TASKKILL /F /IM CMD.EXE /T
******************************************************************************
File name doesn't indicate a full path to a executable file.
Executing the following command-line. (workingFolder = C:\a\1\s)
"TASKKILL /F /IM CMD.EXE /T"
Error message highlight pattern:
Warning message highlight pattern:
The system cannot find the path specified.
******************************************************************************
Finishing task: CmdLine
******************************************************************************
Task CmdLine failed. This caused the job to fail. Look at the logs for the task for more details.
******************************************************************************
Starting task: Run C:\WINDOWS\system32\taskkill.exe /f /im * /t /fi "IMAGENAME eq cmd.exe"
******************************************************************************
File name doesn't indicate a full path to a executable file.
Executing the following command-line. (workingFolder = C:\a\1\s)
C:\WINDOWS\system32\taskkill.exe /f /im * /t /fi "IMAGENAME eq cmd.exe"
Error message highlight pattern:
Warning message highlight pattern:
SUCCESS: The process with PID 2960 (child process of PID 2716) has been terminated.
ERROR: The process with PID 2944 (child process of PID 2716) could not be terminated.
Reason: The process cannot terminate itself.
SUCCESS: The process with PID 2716 (child process of PID 1364) has been terminated.
******************************************************************************
Finishing task: CmdLine
******************************************************************************
试试这个
任务栏/ F / IM CMD.EXE / T
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句