【发布时间】:2021-07-28 10:00:39
【问题描述】:
我在 Jenkins 中使用 newman 来执行邮递员集合。
简要背景:我在 C:\Program Files\nodejs 中安装了 node js,并且 newman 是使用全局安装的,所以它安装在这里 - C:\Users\waniijag\ AppData\Roaming\npm\node_modules\newman
关于环境变量:
- C:\Users\waniijag\AppData\Roaming\npm 被添加到 Environment variables 的 User variables for the user 中
- 另外,我在用户变量和系统的路径变量中附加了C:\Program Files\nodejs变量。
现在,当我执行“newman run Postman collection”或 C:\Users\waniijag\AppData\Roaming\npm\node_modules\newman run postman collection 时,我收到以下错误:
'C:\Users\waniijag\AppData\Roaming\npm\node_modules\newman' is not recognized as an internal or external command,
operable program or batch file.
我不明白我哪里出错了- 提前致谢。
【问题讨论】:
-
@ParagSoni 我也试过了。但还是不行。
标签: node.js jenkins npm postman