如何在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的方法吗? / p>
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-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屋!