[GH-ISSUE #93] Error: Failed to install: ENOENT: no such file or directory #55

Closed
opened 2026-03-03 18:50:19 +03:00 by kerem · 2 comments
Owner

Originally created by @msuadOf on GitHub (Mar 3, 2026).
Original GitHub issue: https://github.com/OthmanAdi/planning-with-files/issues/93

I patched fix at #22

{
  "env": {
	...
	"TMPDIR":"~/.claude/tmp"
  }
}

when I type the command in claude:

/plugin marketplace add OthmanAdi/planning-with-files
/plugin install planning-with-files@planning-with-files

the /plugin install planning-with-files@planning-with-files will result in:

 Error: Failed to install: ENOENT: no such file or directory, rename 
 '/home/<user>/.claude/plugins/cache/planning-with-files' -> '~/.claude/tmp/claude-plugin-temp-1772529525853'
Originally created by @msuadOf on GitHub (Mar 3, 2026). Original GitHub issue: https://github.com/OthmanAdi/planning-with-files/issues/93 I patched fix at #22 ``` { "env": { ... "TMPDIR":"~/.claude/tmp" } } ``` when I type the command in claude: ```shell /plugin marketplace add OthmanAdi/planning-with-files /plugin install planning-with-files@planning-with-files ``` the `/plugin install planning-with-files@planning-with-files` will result in: ```shell Error: Failed to install: ENOENT: no such file or directory, rename '/home/<user>/.claude/plugins/cache/planning-with-files' -> '~/.claude/tmp/claude-plugin-temp-1772529525853' ```
kerem closed this issue 2026-03-03 18:50:19 +03:00
Author
Owner

@msuadOf commented on GitHub (Mar 3, 2026):

well, it must be used in shell env instead of in claude env. I use export TMPDIR="$HOME/.claude/tmp" and it works.

<!-- gh-comment-id:3989757316 --> @msuadOf commented on GitHub (Mar 3, 2026): well, it must be used in shell env instead of in claude env. I use `export TMPDIR="$HOME/.claude/tmp"` and it works.
Author
Owner

@OthmanAdi commented on GitHub (Mar 3, 2026):

@msuadOf Thank you for reporting this and for finding the solution. The tilde expansion issue makes sense. Your fix using export TMPDIR="$HOME/.claude/tmp" in the shell environment is the correct approach. Added you to CONTRIBUTORS.md for helping the community with this.

<!-- gh-comment-id:3990163416 --> @OthmanAdi commented on GitHub (Mar 3, 2026): @msuadOf Thank you for reporting this and for finding the solution. The tilde expansion issue makes sense. Your fix using `export TMPDIR="$HOME/.claude/tmp"` in the shell environment is the correct approach. Added you to CONTRIBUTORS.md for helping the community with this.
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/planning-with-files#55
No description provided.