如何在 Ubuntu 16.04 LTS 64 位上安装/启动 Postman 本机 v4.10.3?

编程入门 行业动态 更新时间:2024-10-25 06:33:40
本文介绍了如何在 Ubuntu 16.04 LTS 64 位上安装/启动 Postman 本机 v4.10.3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我下载了 Linux 版 Postman(来自 www.getpostman/apps),将 .tar.gz 文件解压到 ~/bin/postman 中,然后尝试执行 ~/bin/postman/Postman/Postman.不幸的是,它导致了以下错误:

I downloaded Postman for Linux (from www.getpostman/apps), unpacked .tar.gz file into ~/bin/postman and then tried to execute ~/bin/postman/Postman/Postman. Unfortunately it resulted with following error:

A JavaScript error occurred in the main process Uncaught Exception: Error: Cannot find module 'glob' at Module._resolveFilename (module.js:455:15) at Function.Module._resolveFilename (/home/imilosavljevic/bin/postman/Postman/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.Module._load (module.js:403:25) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at Object.<anonymous> (/home/imilosavljevic/bin/postman/Postman/resources/app/node_modules/electron-json-storage/node_modules/rimraf/rimraf.js:7:12) at Module._compile (module.js:556:32) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12)

还有其他方法可以在 Ubuntu 上安装/启动 Postman 吗?

Is there any other way of installing/starting Postman on Ubuntu?

推荐答案

是的,您可以使用以下命令安装 Postman:

Yes, you can install Postman using these commands:

wget dl.pstmn.io/download/latest/linux64 -O postman.tar.gz sudo tar -xzf postman.tar.gz -C /opt rm postman.tar.gz sudo ln -s /opt/Postman/Postman /usr/bin/postman

您还可以让 Postman 出现在 Unity Launcher 中:

You can also get Postman to show up in the Unity Launcher:

cat > ~/.local/share/applications/postman.desktop <<EOL [Desktop Entry] Encoding=UTF-8 Name=Postman Exec=postman Icon=/opt/Postman/app/resources/app/assets/icon.png Terminal=false Type=Application Categories=Development; EOL

标准 Ubuntu 开发安装不需要 node.js 或任何其他依赖项.

You don't need node.js or any other dependencies with a standard Ubuntu dev install.

在我们的博客文章中查看更多信息 blog.bluematador/posts/postman-how-to-install-on-ubuntu-1604/.

See more at our blog post at blog.bluematador/posts/postman-how-to-install-on-ubuntu-1604/.

更改 icon.png 位置.最新版本的 Postman 稍微改变了它们的目录结构.

Changed icon.png location. Latest versions of Postman changed their directory structure slightly.

更多推荐

如何在 Ubuntu 16.04 LTS 64 位上安装/启动 Postman 本机 v4.10.3?

本文发布于:2023-10-29 08:23:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1539198.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:本机   如何在   Ubuntu   LTS   Postman

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!