我正在尝试通过jenkins运行m集合,但它显示以下错误:
**由trideep mukherjee用户启动,在工作空间中以SYSTEM Building身份运行
C:\ Program Files(x86)\ Jenkins \ workspace \ Newman [Newman] $ cmd / c调用C:\ WINDOWS \ TEMP \ jenkins8980552465408575800.bat 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 --version “ newman”未被识别为内部或外部命令,可操作程序或批处理文件。 C:\ Users \ tride \ AppData \ Roaming \ npm \ node_modules \ newman>退出9009构建 步骤“ Ex **
我已经尝试了在博客中提及的所有可能方式来添加newman的本地路径,但没有成功。 请查看我添加的环境变量
答案 0 :(得分:0)
将newman安装路径设置为Windows或Linux中的路径作为环境变量。 然后它将起作用