Skip to content

Commit 955003b

Browse files
committed
docs: 📝 add port issue in FAQ
1 parent d4136a9 commit 955003b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/instructions/faq.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,28 @@ You can use `of` function to create a hardcoded observable.
2626
```typescript
2727
stub.mockReturnValue(of(42));
2828
```
29+
30+
## `Error: listen EACCES: permission denied`
31+
32+
When using Vitest Browser mode on some systems, you may encounter the following error:
33+
34+
```
35+
Error: listen EACCES: permission denied 127.0.0.1:63315
36+
```
37+
38+
In this case, you can override the port using the `--browser.api.port` or the configuration file:
39+
40+
```ts
41+
export default defineConfig({
42+
...
43+
test: {
44+
...
45+
browser: {
46+
...
47+
api: {
48+
port: 63315,
49+
},
50+
},
51+
},
52+
});
53+
```

0 commit comments

Comments
 (0)