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
Fixes a brutal crash in case of address 443 or 80 already in use
on the machine and if the script is not runned under sudo on linux.
The script exit, but writing an error message and a tip on how to
resolve.
Update README consequently.
Upgrade minimum node version to 8.
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,13 +79,19 @@ Checkout the updated list [here](https://github.com/FiloSottile/mkcert/blob/mast
79
79
80
80
## Troubleshooting
81
81
### Node.js version
82
-
https-localhost requires Node.js 7.6 or higher.
82
+
https-localhost requires Node.js 8 or higher.
83
83
<sub>If you need compatibility with previously Node.js versions let me know, I'll try to rearrange the code.</sub>
84
84
85
85
### root required
86
86
-**At first run** this tool generate a trusted certificate. The sudo password may be required. If you cannot provide the sudo password generate a `localhost.key` and `localhost.crt` and specify its path with `CERT_PATH=/diractory/containing/certificates/ serve ~/myproj`.
87
87
-**At each run** the password may be required to run the server on port 443 and 80. To avoid the script ask for password specify a different port number: `PORT=4433 serve ~/myproj`.
88
88
89
+
### EACCES
90
+
Run with sudo to use the default ports 443 and 80. You can also change port with: `PORT=4433 serve ~/myproj`.
91
+
92
+
### EADDRINUSE
93
+
Another service on your machine is using port 443 or port 80. Stop it or change port with `PORT=4433 serve ~/myproj`.
0 commit comments