Comments (7)
Hey guys!
Thank you very much for opening the issue and for all the information provided.
I was never able to work on this because I never managed to replicate the problem UNTIL a while ago I realized that with npm run start -- -d ~
for some reason it did NOT crash. So I tried create a deeeeply nested folders as @EarthlingJim suggest and run npm run build; npm link; npkill (from home)
(for simulate a real installation) and GOTCHA!.
I can bump the complete error:
(node:158396) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 data listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit
at _addListener (node:events:595:17)
at Socket.addListener (node:events:617:10)
at Socket.Readable.on (node:internal/streams/readable:876:35)
at Observable._subscribe (file:///home/juanimi/projects/npkill/lib/services/stream.service.js:14:20)
at Observable._trySubscribe (/home/juanimi/projects/npkill/node_modules/rxjs/dist/cjs/internal/Observable.js:41:25)
at /home/juanimi/projects/npkill/node_modules/rxjs/dist/cjs/internal/Observable.js:35:31
at Object.errorContext (/home/juanimi/projects/npkill/node_modules/rxjs/dist/cjs/internal/util/errorContext.js:22:9)
at Observable.subscribe (/home/juanimi/projects/npkill/node_modules/rxjs/dist/cjs/internal/Observable.js:26:24)
at /home/juanimi/projects/npkill/node_modules/rxjs/dist/cjs/internal/operators/catchError.js:12:27
at OperatorSubscriber.<anonymous> (/home/juanimi/projects/npkill/node_modules/rxjs/dist/cjs/internal/util/lift.js:14:28)
So the problem all along has been here:
npkill/src/services/stream.service.ts
Line 20 in a5c5406
Indeed, by removing that line, no message will come again.
I'm going to dig deeper into what's going on.
from npkill.
Omggg it can't be ._.
We forgot to delete that particular eventlistener (1 line).
The solution to this problem should be in this commit I just made: 802b2fa
I have to do more extensive testing but I think this problem is solved.
from npkill.
Should be solved in v0.9.0 π
from npkill.
I can verify that it works perfectly fine now.
As you wrote, even deeeeply nested folders give no problems now. π€£
Thanks for fixing it, @zaldih ! π
from npkill.
I'm having the same issue on macOS: 10.15.6 npkill: 0.7.1 npx npkill
from npkill.
Same issue with Windows 10 Pro using npx npkill
from npkill.
Same issue with Windows 10 Home using npx npkill
v0.8.3 (latest version).
This seems to occur when we have deeply nested folders. For example, 5 folders deep, like:
C:\Work\Code\WebDev\ClientX\ProjectY
For my case, npkill
does not even detect folders that are 4 layers deep (e.g. those "ClientX" folders), when I run npkill
from the root directory (C drive).
So I agree with @quinncomendant that npkill
should be able to scan through all deeply nested folders, by either:
- (A) Having high-enough resource limits by default; or
- (B) Allowing users to increase these limits (perhaps like a
-bruteforce
flag?).
from npkill.
Related Issues (20)
- .gitignore equivalent for ignored directories HOT 1
- Instead of doing both npx and npm global install, we can do... HOT 1
- [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
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.