Comments (5)
First of all, we'd like to thank you for opening and participating in this issue.
We have not been able to find any evidence of npkill deleting any files apart from node_modules, nor have we been able to replicate this behaviour (not for lack of trying.)
What we have realised, after hours of testing, is that some applications, such as Visual Studio Code, Discord, Postman etc. have their own node_modules directories that enable them to work correctly. Therefore, when using npkill's --delete-all flag, these node_modules directories are also deleted. This can cause the aforementioned applications (and any other application that stores its dependencies in a node_modules directory) to fail or have unexpected behaviours, like messing up VS tooling.
Despite the fact that this is annoying and can cause a great deal of trouble, the --delete-all flag is working as expected, since it is searching for and automatically deleting every single node_modules directory it finds.
Even so, we have reached the conclusion that this flag can be dangerous and can cause problems. Therefore, we have chosen to remove it from npkill.
from npkill.
Yes, all of my projects are gone. Just installed latest version ([email protected]). Ran npkill -D
on home directory.
You should take down this project or display a BIG warning before the problem is investigated and solved.
from npkill.
Perhaps a list of everything that would be deleted as a result of this flag as a sanity check, then requiring a simple "Y" input to confirm such deletions? It's pretty annoying having to cycle through everything with space bar. And then if one takes longer, you need to cycle back up to check it's been deleted before quitting the runtime.
from npkill.
First of all, I deeply regret what happened.
Please, could you provide me with all the possible information?
- Program version (npkill -v)
- OS
- The steps prior to the event
- If possible, the route from which you ran npkill
- Remember if during the event, all the directories in the list were shown?
Before launching the first version to the public, we did thousands of tests to test that none of this could happen.
Are you completely sure that the problem has been caused by npkill?
from npkill.
It deleted not only my projects but everything under my home. The Projects/targeek
still there because I was running a web server there while running npkill -D
.
And iCloud too
from npkill.
Related Issues (20)
- [Feature request]: Copy path HOT 1
- [Feature request]: Open the folder
- Better way to distribute the binary? (windows-find.exe) HOT 3
- Use of mutation testing in npkill - Help needed HOT 1
- Can you stop at the high level node_modules? HOT 2
- Getting SyntaxError: Unexpected token '.' during npkill launch HOT 3
- Freezes calculating stats HOT 13
- Moving back to an item that has started deleting, or is deleted, disables the arrow key and produces error HOT 3
- Invalid count value HOT 6
- Thank you for this amazing package
- TypeError: Cannot read properties of undefined (reading 'message') HOT 1
- Help command does not print all the result in the large-size window HOT 1
- Node.js v18.16.0,There is a type error at line 262 of the controller file controller.js, the line of code tries to access error.message, but the error variable is undefined, causing the program to crash HOT 3
- npkill does NOT show `node_module`s in the nested projects. HOT 6
- Errors on symlinked node_modules HOT 1
- Does not show any node_modules HOT 1
- delete is too slow HOT 2
- Support for `--target` with multiple directories
- gar dependency is deprecated HOT 1
- feature to be able to remove the project entirely
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npkill.