Skip to content

global install fails due to local link dependency on argc #1

@mozzius

Description

@mozzius

Problem

bun install -g github:ethan-huo/apple-docs (the install method from the README/skill troubleshooting section) fails because package.json specifies argc as a local link:

"dependencies": {
  "argc": "link:../argc",
  "cheerio": "^1.1.0"
}

This only resolves in a local dev setup where argc is cloned as a sibling directory. For anyone else, the install fails with:

error: Package "argc" is not linked

To install a linked package:
   bun link my-pkg-name-from-package-json

error: argc@link:../argc failed to resolve

Suggested fix

Change the argc dependency to a GitHub reference:

"argc": "github:ethan-huo/argc"

Workaround

Clone both repos side-by-side and use bun link:

git clone https://github.com/ethan-huo/argc.git /tmp/argc
git clone https://github.com/ethan-huo/apple-docs.git /tmp/apple-docs
cd /tmp/argc && bun install && bun link
cd /tmp/apple-docs
# patch package.json: change "link:../argc" to "link:argc"
bun install && ln -s /tmp/apple-docs/src/cli.ts ~/.bun/bin/apple-docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions