Default port and `--serve-port`

Hey framework team. Your docs indicate that the default port is 1012, but my dev server appears to be using 1816 or 6XXXX. The second port changes each time I run the dev server, so I see 63858, 63890, 64191. When I run my Plasmo dev server and then do sudo lsof -i -P | grep LISTEN | grep :$PORT those two ports, plus the expected 1815 for HMR, are the only new ports listed. Secondarily, when I add plasmo dev --serve-host=localhost --serve-port-1012 to my package.json scripts (or another port like 8080) appears to have no effect. I still see 1815, 1816 and 6XXXX. For example, I have "dev": "plasmo dev --serve-host=localhost --serve-port-1012", in my package.json and just ran pnpm dev and the ports are 1815m 1816 and 64191
1 Reply
royanger
royangerOP•4mo ago
Here is the output of npx envinfo --system --browsers --binaries --npmPackages
System:
OS: macOS 14.5
CPU: (12) arm64 Apple M2 Pro
Memory: 123.11 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v20.15.1/bin/npm
pnpm: 9.6.0 - ~/Library/pnpm/pnpm
bun: 1.0.4 - ~/.bun/bin/bun
Watchman: 2024.07.15.00 - /opt/homebrew/bin/watchman
Browsers:
Brave Browser: 127.1.68.137
Chrome: 127.0.6533.119
Safari: 17.5
npmPackages:
@clerk/chrome-extension: 1.2.0 => 1.2.0
@ianvs/prettier-plugin-sort-imports: 4.1.1 => 4.1.1
@types/chrome: 0.0.258 => 0.0.258
@types/node: 20.11.5 => 20.11.5
@types/react: 18.2.48 => 18.2.48
@types/react-dom: 18.2.18 => 18.2.18
plasmo: 0.88.0 => 0.88.0
postcss: 8.4.33 => 8.4.33
prettier: 3.2.4 => 3.2.4
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
tailwindcss: 3.4.1 => 3.4.1
typescript: 5.3.3 => 5.3.3
System:
OS: macOS 14.5
CPU: (12) arm64 Apple M2 Pro
Memory: 123.11 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v20.15.1/bin/npm
pnpm: 9.6.0 - ~/Library/pnpm/pnpm
bun: 1.0.4 - ~/.bun/bin/bun
Watchman: 2024.07.15.00 - /opt/homebrew/bin/watchman
Browsers:
Brave Browser: 127.1.68.137
Chrome: 127.0.6533.119
Safari: 17.5
npmPackages:
@clerk/chrome-extension: 1.2.0 => 1.2.0
@ianvs/prettier-plugin-sort-imports: 4.1.1 => 4.1.1
@types/chrome: 0.0.258 => 0.0.258
@types/node: 20.11.5 => 20.11.5
@types/react: 18.2.48 => 18.2.48
@types/react-dom: 18.2.18 => 18.2.18
plasmo: 0.88.0 => 0.88.0
postcss: 8.4.33 => 8.4.33
prettier: 3.2.4 => 3.2.4
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
tailwindcss: 3.4.1 => 3.4.1
typescript: 5.3.3 => 5.3.3
Want results from more Discord servers?
Add your server