如何在 Ubuntu 16.04 LTS 64 位上安装/启动 Postman 本机 v4.10.3? [英] How to install/start Postman native v4.10.3 on Ubuntu 16.04 LTS 64-bit?
问题描述
我下载了 Linux 版 Postman(来自 https://www.getpostman.com/apps),将 .tar.gz 文件解压到 ~/bin/postman
中,然后尝试执行 ~/bin/postman/Postman/Postman
.不幸的是,它导致了以下错误:
I downloaded Postman for Linux (from https://www.getpostman.com/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 https://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.
在我们的博客文章中查看更多信息 https://blog.bluematador.com/posts/postman-how-to-install-on-ubuntu-1604/.
See more at our blog post at https://blog.bluematador.com/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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!