Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install/start Postman native v4.10.3 on Ubuntu 16.04 LTS 64-bit?

Tags:

ubuntu

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) 

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

like image 905
TheJavaGuy-Ivan Milosavljević Avatar asked Mar 24 '17 09:03

TheJavaGuy-Ivan Milosavljević


People also ask

How do I start Postman in Ubuntu?

Right-click on the created shortcut of Postman on Desktop and select the “Allow launching” option. You can also start it from the Application launcher by searching the name of this API testing tool.

How do I install the latest version of Postman in Ubuntu?

Postman is available on the web at go.postman.co/home and as a native desktop app for Mac (Intel and M1), Windows (32-bit / 64-bit), and Linux (64-bit) operating systems. To get the latest version of the Postman desktop app, visit the download page and select Download for your platform.

Is Postman available for Ubuntu?

Postman is available as a native app (built on Electron) for all major operating systems, including macOS, Linux, and Windows. This article guides you through the installation of Postman on Ubuntu 20.04.


2 Answers

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 

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 

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

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

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

like image 120
Blue Matador Avatar answered Sep 18 '22 13:09

Blue Matador


Edit:

If you have snap or want to install it, just do:

$ sudo snap install postman 

if you don't have it, install it as:

$ sudo apt update $ sudo apt install snapd 

Another way is create an script:

First create this script:

create a file install-postman.sh, inside of it add:

#!/bin/bash cd /tmp || exit echo "Downloading Postman ..." wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz tar -xzf postman.tar.gz rm postman.tar.gz  echo "Installing to opt..." if [ -d "/opt/Postman" ];then     sudo rm -rf /opt/Postman fi sudo mv Postman /opt/Postman  echo "Creating symbolic link..." if [ -L "/usr/bin/postman" ];then     sudo rm -f /usr/bin/postman fi sudo ln -s /opt/Postman/Postman /usr/bin/postman  echo "Installation completed successfully." echo "You can use Postman!" 

run it in terminal with:

$ sh install-postman.sh 

Then create the desktop launcher:

Postman.desktop

[Desktop Entry] Encoding=UTF-8 Name=Postman Exec=postman Icon=/opt/Postman/resources/app/assets/icon.png Terminal=false Type=Application Categories=Development; 

Put this file in your desktop if you want (don't forget give to it execution permissions). Double click, and that's it!

Forever thanks to Aviskase (github acount name).

source -> https://gist.github.com/aviskase/e642248c35e400b56e2489430952369f#file-postman-desktop

like image 41
A Monad is a Monoid Avatar answered Sep 21 '22 13:09

A Monad is a Monoid