Skip to content

Commit 249587c

Browse files
committed
fix: update default port
1 parent 9160b81 commit 249587c

File tree

1 file changed

+2
-2
lines changed
  • packages/node-modules-inspector/src/node

1 file changed

+2
-2
lines changed

packages/node-modules-inspector/src/node/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ cli
6868
.option('--root <root>', 'Root directory', { default: process.cwd() })
6969
// Dev specific options
7070
.option('--host <host>', 'Host', { default: process.env.HOST || '127.0.0.1' })
71-
.option('--port <port>', 'Port', { default: process.env.PORT || 6666 })
71+
.option('--port <port>', 'Port', { default: process.env.PORT || 9999 })
7272
.option('--open', 'Open browser', { default: true })
7373
// Action
7474
.action(async (options) => {
7575
const host = options.host
76-
const port = await getPort({ port: options.port, portRange: [6666, 9000], host })
76+
const port = await getPort({ port: options.port, portRange: [9999, 15000], host })
7777

7878
console.log(MARK_INFO, `Starting Node Modules Inspector at`, c.green(`http://${host === '127.0.0.1' ? 'localhost' : host}:${port}`), '\n')
7979

0 commit comments

Comments
 (0)