Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting node_modules through WSL 1 freezes Windows. #6303

Closed
mthines opened this issue Dec 3, 2020 · 6 comments
Closed

Deleting node_modules through WSL 1 freezes Windows. #6303

mthines opened this issue Dec 3, 2020 · 6 comments
Labels

Comments

@mthines
Copy link

mthines commented Dec 3, 2020

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.630]   
Your Distribution version: Release:        20.04
Whether the issue is on WSL 2 and/or WSL 1: Linux version 4.4.0-19041-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #488-Microsoft Mon Sep 01 13:43:00 PST 2020

Steps to reproduce

  1. Clone down a heavy Javascript Node project (The github project the issue occur on is private but I can give you access.)

  2. Install the project using either NPM or Yarn.

npm install
# or 
yarn
  1. Delete the newly generated node_modules folder using WSL.
rm -rf node_modules
  1. The node_modules folder will be deleted after a while, but then the operating system stops functioning.
    I can't open task manager, shutdown or restart, the machine is just frozen.
    I need to shutdown the machine through the physically power button.

WSL logs:
Will add later.

Expected behavior

I'm expecting to being able to delete the node_modules folder, and reinstall it.

Actual behavior

The operating system freezes, and I'm stuck.

@sirredbeard
Copy link
Contributor

Are you storing the node_modules folder on /mnt/c or in a Linux folder?

@mthines
Copy link
Author

mthines commented Jan 5, 2021

Are you storing the node_modules folder on /mnt/c or in a Linux folder?

/mnt/c folder under a project directory

@sirredbeard
Copy link
Contributor

My first suggestion would be to host that project in a folder on WSL side for performance purposes.

Second can you please suggest a large public node project to try this with so I can attempt to reproduce?

@mthines
Copy link
Author

mthines commented Jan 14, 2021

My first suggestion would be to host that project in a folder on WSL side for performance purposes.

That's interesting, I'll try that. Even if it's WSL 1? I've had crazy slow 'yarn install' on WSL 2 so i dropped it for now.

Second can you please suggest a large public node project to try this with so I can attempt to reproduce?

Yeah, I'll try and make an empty repo, with big package.json and share it.

Thanks!

@adrastogi adrastogi added the wsl1 label May 6, 2021
@mthines
Copy link
Author

mthines commented Jan 12, 2022

I'll mark this as stale, as I never got to test it out. :)

@mthines mthines closed this as completed Jan 12, 2022
@Dvaranir
Copy link

Dvaranir commented Oct 2, 2023

Same problem, project on /mnt/e. WSL1, Ubuntu 22.04.2 LTS, Windows 10 22H2. Wsl and Windows Terminal freezing, killing WSL from task manager not helps, only full system restart do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants