如何解决Postman导入提示”invalid import format(s)“的问题
这篇文章主要讲解了“如何解决Postman导入提示”invalid import format(s)“的问题”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“如何解决Postman导入提示”invalid import format(s)“的问题”吧!
postman导入集合json提示如下错误:
1 invalid import format(s)
Postman Collection Format v1 is no longer supported and can not be imported directly. You may convert your collection to Format v2 and try importing again.
解决:
npm需要安装node
windows打开”命令提示符“
npm install -g postman-collection-transformer
postman-collection-transformer convert -i <path to input Postman collection file> -o <path where the output Postman file will be downloaded> -j 1.0.0 -p 2.0.0 -P
举例如当前目录有btcs.postman_collection.json,换成v2版本 btcs2.postman_collection.json
执行如下命令:
postman-collection-transformer convert -i btcs.postman_collection.json -o btcs2.postman_collection.json -j 1.0.0 -p 2.0.0 -P
感谢各位的阅读,以上就是“如何解决Postman导入提示”invalid import format(s)“的问题”的内容了,经过本文的学习后,相信大家对如何解决Postman导入提示”invalid import format(s)“的问题这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!