You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: more clear error messege
nforms the user that this could be from a netlify function opening ports
Co-authored-by: Thomas Lane <[email protected]>
* fix: updated port in use error message
Co-authored-by: Thomas Lane <[email protected]>
* fix: added types for EADDRINUSE error and updated error message
Co-authored-by: Will <[email protected]>
* fix: reverted back to commit before prettier and pnpm were installed
Co-authored-by: Thomas Lane <[email protected]>
---------
Co-authored-by: Thomas Lane <[email protected]>
Co-authored-by: Thomas Lane <[email protected]>
Co-authored-by: t <[email protected]>
)}\nThis is a problem with the Netlify CLI, not with your application.\nIf you recently updated the CLI, consider reverting to an older version by running:\n\n${chalk.bold(
49
-
'npm install -g netlify-cli@VERSION',
50
-
)}\n\nYou can use any version from ${chalk.underline(
51
-
'https://ntl.fyi/cli-versions',
52
-
)}.\n\nPlease report this problem at ${chalk.underline(
`${chalk.red(`Port ${err.port} is already in use`)}\n\n`+
47
+
`Your serverless functions might be initializing a server\n`+
48
+
`to listen on specific port without properly closing it.\n\n`+
49
+
`This behavior is generally not advised\n`+
50
+
`To resolve this issue, try the following:\n`+
51
+
`1. If you NEED your serverless function to listen on a specific port,\n`+
52
+
`use a randomly assigned port as we do not officially support this.\n`+
53
+
`2. Review your serverless functions for lingering server connections, close them\n`+
54
+
`3. Check if any other applications are using port ${err.port}\n`,
55
+
{exit: false},
56
+
)
57
+
}else{
58
+
error(
59
+
`${chalk.red(
60
+
'Netlify CLI has terminated unexpectedly',
61
+
)}\nThis is a problem with the Netlify CLI, not with your application.\nIf you recently updated the CLI, consider reverting to an older version by running:\n\n${chalk.bold(
62
+
'npm install -g netlify-cli@VERSION',
63
+
)}\n\nYou can use any version from ${chalk.underline(
64
+
'https://ntl.fyi/cli-versions',
65
+
)}.\n\nPlease report this problem at ${chalk.underline(
0 commit comments