我试图通过jenkins运行m集合,但它显示了下面的错误:
**由用户启动,在工作区中作为系统构建运行
C:\Program (X86)\Jenkins\工作区\ Newman $ cmd /c调用C:\Users\tride\AppData\Roaming\npm\node_modules\newman C:\Users\tride\AppData\Roaming\npm\node_modules\newman>newman C:\Program (x86)\Jenkins\workspace\Newman>cd C:\Users\tride\AppData\Roaming\npm\node_modules\newman C:\Users\tride\AppData\Roaming\npm\node_modules\newman>newman--版本‘newman’不被识别为内部或外部命令、可操作的程序或批处理文件。C:\Users\tride\AppData\Roaming\npm\node_modules\newman>exit 9009构建步骤'Ex**
我已经尝试了在博客中提到的所有可能的方法来添加newman的本地路径,但是没有奏效。请参阅我添加的环境变量。
发布于 2020-05-03 12:11:05
将newman安装路径设置为windows或linux中的路径作为环境变量。然后它就能工作了
https://stackoverflow.com/questions/61570431
复制相似问题