我下载了 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?
发布评论