microsoft / microsoft/WSL

wsl exits with code when running npm test

Open
#14,247 6 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

Microsoft windows 11 pro 24H2

### WSL Version

WSL version: 2.6.3.0

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

Kernel version: 6.6.87.2-1

### Distro Version

Ubuntu 24.04

### Other Software

WSL version 2.6.3.0
When running npm test on my WSL ubuntu 24.04 I face this exited code
`[process exited with code 1 (0x00000001)]
You can now close this terminal with Ctrl+D, or press Enter to restart.`
after some time.
node version is 12.22.12
While running the same npm test on my windows it runs fine, because I want to have flexibilty with my node versions (I usually change my node versions depending on projects)
is this an issue with WSL or on the node

### Repro Steps

install node verison 12.22.
run npm test it fails after some time

### Expected Behavior

npm test should be successfully completed operation

### Actual Behavior

system errored out/exited with code 1

### Diagnostic Logs

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure in WSL 2 on Ubuntu 24.04 with Node.js 12.22.12 and `npm test`, comparing it with the reported Windows behavior. No source files, tests, or diagnostic logs are identified; done would be determining whether the exit originates in WSL or Node.js and collecting evidence that supports the conclusion.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.