惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
GbyAI
GbyAI
爱范儿
爱范儿
H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
Check Point Blog
M
MIT News - Artificial intelligence
量子位
宝玉的分享
宝玉的分享
MongoDB | Blog
MongoDB | Blog
V
Visual Studio Blog
罗磊的独立博客
F
Fortinet All Blogs
美团技术团队
博客园_首页
博客园 - 【当耐特】
L
LangChain Blog
月光博客
月光博客
腾讯CDC
The Cloudflare Blog
D
Docker
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

Newman - 分类 - cywhat's blog

Jenkins报错 Bash:newman:command Not Found Linux安装newman生成postman脚本报告 newman生成好看的html报告
Linux/macos安装newman
cywhat · 2021-03-23 · via Newman - 分类 - cywhat's blog

   约 200 字  预计阅读 1 分钟    次阅读     条评论

目录

1、安装Node环境(1/2选其一即可

1.官网下载node包,并上传到linux服务器

1
https://nodejs.org/en/download/

2.wget安装

1
wget https://nodejs.org/dist/v15.12.0/node-v15.12.0-linux-x64.tar.xz

3.安装解压

1
tar -xvf node-v15.12.0-linux-x64.tar.xz

4.移动文件夹并重命名

1
mv node-v15.12.0-linux-x64 /opt/node-15

5.配置环境变量

加入以下内容

1
2
3
#node 
export NODE_HOME=/opt/node-15
export PATH=$NODE_HOME/bin:$PATH

6.让配置生效

7.查看node版本

https://img-blog.csdnimg.cn/20210322160240981.png

8.查看npm版本

https://img-blog.csdnimg.cn/20210322160257886.png

2、安装newman

1
2
npm install -g newman --registry https://registry.npm.taobao.org/

提示如下图无需理会

https://img-blog.csdnimg.cn/20210322160330423.png

查看版本

https://img-blog.csdnimg.cn/20210322160401214.png

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏