Fix random permission problems when trying to obtain a free port on Windows 10
Fixes
@@ -149,7 +149,7 @@ async function findWindowsPortRange() {
function isFree(port, opt_host) {
return new Promise((resolve, reject) => {
let server = net.createServer().on('error', function(e) {
- if (e.code === 'EADDRINUSE') {
+ if (e.code === 'EADDRINUSE' || e.code === 'EACCES') {
resolve(false);
} else {
reject(e);
