vercel / vercel/hyper

Occasional error: An unexpected error occurred: "ENOTEMPTY: directory not empty, rmdir...

Open
#3,534 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

Issue

Hyper occasionally returns the following error (previewed in a macOS notification):

error An unexpected error occurred: "ENOTEMPTY: directory not empty, rmdir '/Users/jschuur/.hyper_plugins/node_modules/electron/dist/Electron.app/Contents/Resources'".

I don't know what is trying to delete that directory, but it doesn't sound safe to do so, since it's related to Electron. I can't trigger this error specifically, it just crops up at seemingly random a few times a day.

How do I clean this up and stop the notification?

I did un/install a few plugins through two different methods: by editing the config file directly, and by using the CLI. Maybe something got mixed up when it was trying to do cleanup after I uninstalled some?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked gist and the Electron.app path in .hyper_plugins/node_modules, then review the two plugin-management entry points mentioned: direct config edits and the CLI. Reproduce the uninstall and cleanup flow on macOS; done means identifying why the ENOTEMPTY notification occurs and preventing the recurring error.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, macos, node.js, typescript
Domain
desktop
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.