Saad_Elkarak
Saad_Elkarak

Reputation: 1

npm on Windows keeps requiring WSL

I am trying to run my NPM projects on Windows, but when I run npm run dev, it keeps asking me to install WSL, even though I don't want to use it. Here’s what happens:

C:\{Path}\GitHub\project> npm run dev

> [email protected] dev   
> next dev --turbopack

This application requires the Windows Subsystem for Linux Optional Component.
Install it by running: wsl.exe --install --no-distribution
The system may need to be restarted so the changes can take effect.
Error code: Bash/WSL_E_WSL_OPTIONAL_COMPONENT_REQUIRED

The issue also happens when running npx

PS C:\Path\to\test> npx create-react-app my_app

This application requires the Windows Subsystem for Linux Optional Component.
Install it by running: wsl.exe --install --no-distribution
The system may need to be restarted so the changes can take effect.
Error code: Bash/WSL_E_WSL_OPTIONAL_COMPONENT_REQUIRED

(this started happening after a windows update)

My Questions:

What I tried:

System Info:

Upvotes: 0

Views: 40

Answers (0)

Related Questions