newman安装
npm install -g newman
这里注意node版本10+,具体安装node方法不介绍了
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
/data/PRG/node-v13.11.0-linux-x64/bin/newman -> /data/PRG/node-v13.11.0-linux-x64/lib/node_modules/newman/bin/newman.js
+ newman@5.2.4
added 4 packages from 10 contributors, removed 43 packages, updated 81 packages and moved 2 packages in 16.199s
安装newman后,执行”newman -h"报:-bash: newman: 未找到命令
解决方案
echo -e "export PATH=$(npm prefix -g)/bin:$PATH" >> ~/.bashrc && source ~/.bashrc
参考
https://www.cnblogs.com/fuck-you/p/12500249.html