theintern / intern-tutorial

Learn how to use Intern by following this tutorial!
http://theintern.io
144 stars 44 forks source link

Tutorial run causes Error: listen EACCES: permission denied 0.0.0.0.9001 #49

Open romanguerrero opened 3 years ago

romanguerrero commented 3 years ago

Expected behavior

It should output: No unit test coverage for node node: 0 passed, 0 failed

Current behavior

Error: listen EACCES: permission denied 0.0.0.0:9001
at Server.setupListenHandle [as _listen2] @ net.js:1262:19
at listenInCluster @ net.js:1327:12
at Server.listen @ net.js:1414:7
at new WebSocketServer @ node_modules\ws\lib\websocket-server.js:74:20
@ src\lib\Server.ts:82:17
at new Promise @ anonymous
at Server.start @ src\lib\Server.ts:73:11
@ src\lib\executors\Node.ts:361:15
at new e @ node_modules\@theintern\common\index.js:16:5068
@ src\lib\executors\Node.ts:350:53

Steps to reproduce (for bugs)

  1. Download Intern.
    npm install --save-dev intern
    Add the following to the "compilerOptions" object in tsconfig.json:
    "types": [
    "intern",
    "systemjs"
    ]
  2. Configure Intern
    Create a intern.json file in the root of project with:
    {
    "browser": {
    "loader": {
    "script": "systemjs"
    },
    "plugins": {
    "script": "_dist/src/system.config.js",
    "useLoader": true
    }
    },
    "environments": ["node", { "browserName": "chrome" }]
    }
  3. Run 'npm test'

Environment

Intern version: 4.0.0
Node version: v10.16.3
NPM version: 6.14.8
Browser version: Firefox 83.0

lechelt commented 3 years ago

Hi, Unfortunately I am struggeling with the same issue. How did you solve it?

romanguerrero commented 3 years ago

@lechelt , I didn't solve it, unfortunately. Reopening because others are having the same issue

lechelt commented 3 years ago

I found a solution. Another process is blocking the port 9001. In my case it is an Intel Driver Graphic software. Here is a link how to fix this: https://github.com/eclipse/mosquitto/issues/1580#issuecomment-632970949