Skip to content

PortFinder crashes with unused adapter #2769

@JasonGoemaat

Description

@JasonGoemaat

Please provide us with the following information:

OS?

Windows 10

Versions.

angular-cli: 1.0.0-beta.17
node: 6.6.0
os: win32 x64

Repro steps.

ng new cli
cd cli
npm install
npm start

The log given by the failure.

Error: connect EACCES fe80::dbb0:2b25:9e86:26cd:49152
at Object.exports._errnoException (util.js:1036:11)
at exports._exceptionWithHostPort (util.js:1059:20)
at TCPConnectWrap.afterConnect as oncomplete

Mention any other details that might be useful.

The fe80::xxxxx is a currently disabled or unavailable adapter. PortFinder.getPort doesn't appear to use the host specified and checks for the port on all adapters, and throws an uncaught exception. To be able to start my app I had to edit node_modules/angular-cli/commands/serve.js and change _checkExpressPort and _ autoFindLiveReloadPort to not use getPort:

  return new Promise((resolve, reject) => {
    resolve(commandOptions);
  });

Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions