HelpTroubleshooting

Help

Troubleshooting

Starting servers

Command not found

The project says npm wasn’t found, or the log says command not found: npm.

Portroom starts commands with the same setup as a new Terminal window: it reads your zsh files once when it opens, ~/.zshrc included, so tools from nvm, fnm, pyenv or Homebrew are found. If a tool still isn't found:

  • Open a new Terminal window and run the command there. If it fails there too, the tool isn't installed, or isn't set up for zsh.
  • A tool set up only for bash or fish isn't seen. Add its setup to ~/.zshrc, then quit and open Portroom again: it reads your shell files once per launch.
  • Or use the full path in the start command, such as /Users/you/.nvm/versions/node/v22.0.0/bin/npm run dev.

"Needs Apple’s Command Line Tools"

On a Mac without Xcode or its Command Line Tools, python3 and git in /usr/bin are only stand-ins: running one opens a macOS window that offers to install the tools. Install them from that window, or run xcode-select --install, then start the server again. Portroom never runs these stand-ins by itself: without the tools, the Git branch and Python version are simply not shown, and they appear by themselves once the tools are installed.

"No access" to Desktop, Documents or another folder

macOS asks before any app looks inside Desktop, Documents, Downloads, iCloud Drive, cloud storage folders and external or network drives. If you chose Don't Allow, it doesn't ask again, and the project shows No access.

Click Open Settings, or go to System Settings ▸ Privacy & Security ▸ Files and Folders, turn on the folder for Portroom, then start the server again. Portroom never looks into these folders by itself: only a project you add from one of them.

"The command finished without starting a server"

The start command ran and ended without an error, so there's nothing to connect to. Check that the command starts a server and doesn't just do a one-off job, and that it doesn't send the server to the background.

It stays on "Starting"

Portroom waits for the server to listen on a port from its folder. After a minute without one it says Still no open port, and Show log opens what the command printed. It keeps waiting after that, so a slow server can still come up. Check the log:

  • It's still building. Some frameworks need a while.
  • It listens on a different port. Your server may be ignoring the port Portroom gave it. Add $PORT to the start command where the port goes, such as my-server --port $PORT.
  • It runs from another folder. Portroom recognizes a server by its folder or by having started it.
  • It isn't a server. A command that keeps running but opens no port stays here until you stop it.

Port taken

The port tile shows Taken: something else is using a Fixed port. You can kill what's holding it (if it's your own process and you're sure what it is), or switch the project to Auto or another port. To see what holds a port from Terminal, see Port already in use on Mac.

Crashed

The server stopped with an error. Click Show errors, or open the log. Run the same command in Terminal, in the project folder, to compare.

"No package.json in this folder"

The start command uses npm, but the folder isn't a Node.js project. Press ⌘E and change the start command. For a plain HTML site, use python3 -m http.server.

Network URL says "This Mac only"

The server accepts connections only from your own Mac, so your phone can't reach it. Portroom reads this from the server and doesn't change it. To allow other devices, make the server listen on 0.0.0.0: hover over the row to see the option for your framework.

macOS asks for access to a folder

When you tick Desktop or Documents in the setup, or open Welcome or New project without having gone through the setup, Portroom looks for projects there, and macOS asks whether it can access those folders. Allow the folders where you keep projects: Portroom needs them to read a project and start its server. If you don't allow one, projects there don't show up in the list, but you can still add them with Choose folder…. Change your answer in System Settings ▸ Privacy & Security ▸ Files and Folders.

What Portroom shows

A server I started in Terminal shows as Running, without logs

Portroom recognizes it by its folder and can stop it, but it has no access to that server's output. Stop it and start it from Portroom to get logs and errors.

A server shows up under Stray servers

Its folder doesn't match any project. Add the folder as a project, or kill the server if you don't need it. Servers inside app bundles, system processes and other users' processes are never listed. To list every port your Mac listens on, see See every dev server running on your Mac.

My server isn't listed under Stray servers

Portroom lists only processes that are clearly dev servers: common runtimes and tools (Node.js, Bun, Deno, Python, Ruby, PHP, Java and so on), with a working folder other than /, on a port below 49152. It leaves out everything else on purpose, so this list doesn't offer ordinary apps.

No Git information

Portroom needs Git, which comes with Xcode Command Line Tools:

bash
xcode-select --install

The menu bar icon is gone

Turn on Settings ▸ General ▸ Show in menu bar.

"Portroom couldn't read its project list"

The project list, ~/Library/Application Support/Portroom/projects.json, was damaged, often by an edit by hand. Portroom shows the projects it could read and keeps the file as it was beside it, as projects.unreadable-<date>.json (Show in the message opens the folder). Nothing in that copy is lost: fix the mistake in it, quit Portroom and put it back as projects.json. portroom list says the same above the list.

Pretty URLs

"Port 80 is in use"

Another app already listens on port 80, often a Caddy or nginx installed with Homebrew. The status card in Settings ▸ Ports & URLs names it. Quit it, or stop its service, for example brew services stop caddy, and Portroom takes the port over within a few seconds. To see what holds the port:

bash
lsof -nP -iTCP:80 -sTCP:LISTEN

The address doesn't open

  • On macOS 15, if Safari says it can't find the server: Settings ▸ Ports & URLs ▸ Safari and other apps ▸ Set Up. Chrome and Firefox open the address without it. See Safari on macOS 15.
  • Check that the top bar says PROXY, and that Pretty URLs is on.
  • Try http://localhost, which lists all your projects.
  • Click Try again in Settings ▸ Ports & URLs.
  • Check your browser and any VPN or proxy settings: some don't send .localhost names to your own Mac. You can always use localhost:port.

Still stuck?

Write to support@portroom.dev. See Support for what to include.

Something unclear or missing on this page? Write to support@portroom.dev.