Cómo instalar / iniciar Postman nativo v4. 10. 3 en Ubuntu 16.04 LTS 64-bit?
He descargado Postman para Linux (desde https://www.getpostman.com/apps ), sin envasar .alquitrán.gz archivo en ~/bin/postman
y luego trató de ejecutar ~/bin/postman/Postman/Postman
. Desafortunadamente resultó con el siguiente 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)
¿Hay alguna otra forma de instalar/iniciar Postman en Ubuntu?
7 answers
Sí, puede instalar Postman usando estos comandos:
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
También puedes hacer que Postman aparezca en el Launcher de Unity:
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
No necesitas node.js o cualquier otra dependencia con una instalación estándar de Ubuntu dev.
Ver más en nuestra entrada de blog en https://blog.bluematador.com/posts/postman-how-to-install-on-ubuntu-1604/.
EDITAR: Icono cambiado.ubicación png. Las últimas versiones de Postman cambiaron ligeramente su estructura de directorios.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-07-05 05:56:57
Primero crea este script:
Install-postman.sh
#!/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!"
Ejecutarlo en terminal con:
$ sh install-postman.sh
Luego crea el lanzador de escritorio:
Cartero.escritorio
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/opt/Postman/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
Ponga este archivo en su escritorio si lo desea (no olvide darle permisos de ejecución). Haga doble clic, y eso es todo!
Para siempre gracias a Aviskase (nombre de cuenta github).
Fuente -> https://gist.github.com/aviskase/e642248c35e400b56e2489430952369f#file-postman-desktop
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-12-29 13:45:08
Sí, hay un impresionante script bash simple que encontré, que le permite actualizar la aplicación Postman Linux, directamente desde el terminal, llamada postman-updater-linux.
Simplemente instálelo usando NPM:
npm install -g postman-updater-linux
Luego busque actualizaciones:
sudo postman-updater check
Luego instale:
sudo postman-updater install
O actualización:
sudo postman-updater update
Los tres últimos comandos se pueden usar con una ubicación personalizada agregando -l /your/custom/path
al final de este comando.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-12-20 13:51:55
No te olvides de
chmod ~/.local/share/applications/postman.desktop +x
De lo contrario no se mostrará en el Lanzador de Unity
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-06-09 11:52:35
No se olvide de añadir sudo de lo contrario obtendrá postman.alquitrán.gz: Error de permiso denegado. Y desvincular a postman si obtienes un error como no se pudo crear un enlace simbólico '/usr/bin / postman': El archivo existe. Así que a continuación está el código completo:
sudo wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
sudo rm postman.tar.gz
sudo unlink /usr/bin/postman
sudo ln -s /opt/Postman/Postman /usr/bin/postman
Then just run postman in the terminal.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-07-05 07:05:15
sudo snap install postman
Este único comando funcionó para mí.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-10-05 14:27:37
También necesita instalar nodejs:
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-03-24 10:43:10