Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

error: Uncaught (in promise) AlreadyExists: File exists (os error 17): symlink

Open
#76 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
deno, typescript
Domain
cli, tooling

Research direction

Start with the symlink_with_overwrite and processEntry functions in pkgm/v0.11.1/bin/pkgm, using the reported pkgm install pipenv command to reproduce the failure. Trace how an existing python symlink is handled during mirror_directory. Done means repeated installation no longer requires manually removing the existing path and does not report the AlreadyExists error.

Written by the indexing model from the issue text.

Description

sudo /usr/local/bin/pkgm install pipenv
error: Uncaught (in promise) AlreadyExists: File exists (os error 17): symlink 'python' -> '/usr/local/pkgs/pipenv.pypa.io/v3000.0.0/venv/bin/python3'
  Deno.symlinkSync(src, dst);
       ^
    at Object.symlinkSync (ext:deno_fs/30_fs.js:519:3)
    at symlink_with_overwrite (file:///Users/james/.pkgx/pkgx.sh/pkgm/v0.11.1/bin/pkgm:501:8)
    at processEntry (file:///Users/james/.pkgx/pkgx.sh/pkgm/v0.11.1/bin/pkgm:375:7)
    at async processEntry (file:///Users/james/.pkgx/pkgx.sh/pkgm/v0.11.1/bin/pkgm:363:9)
    at async processEntry (file:///Users/james/.pkgx/pkgx.sh/pkgm/v0.11.1/bin/pkgm:363:9)
    at async processEntry (file:///Users/james/.pkgx/pkgx.sh/pkgm/v0.11.1/bin/pkgm:363:9)
    at async mirror_directory (file:///Users/james/.pkgx/pkgx.sh/pkgm/v0.11.1/bin/pkgm:350:3)
    at async install (file:///Users/james/.pkgx/pkgx.sh/pkgm/v0.11.1/bin/pkgm:153:5)
    at async file:///Users/james/.pkgx/pkgx.sh/pkgm/v0.11.1/bin/pkgm:65:20

I get this a lot. I have to fix it by just rm -r'ing whatever it says already exists.

Dominant language
TypeScript
Stars
60
Forks
13
PR merge metrics
No merged PRs in 30d

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.

More from pkgxdev/pkgm

All issues in pkgxdev/pkgm

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.