Skip to content

Fix install docs for npm 7+#2

Open
Sajith-K-Sasi wants to merge 2 commits intoChristopherKahler:mainfrom
Sajith-K-Sasi:fix/install-docs-npm7
Open

Fix install docs for npm 7+#2
Sajith-K-Sasi wants to merge 2 commits intoChristopherKahler:mainfrom
Sajith-K-Sasi:fix/install-docs-npm7

Conversation

@Sajith-K-Sasi
Copy link
Copy Markdown

@Sajith-K-Sasi Sajith-K-Sasi commented Mar 30, 2026

Summary

  • Replace npm i -g @chrisai/seed with npx @chrisai/seed for global install
  • Replace npm i -g @chrisai/seed -- --local with npx @chrisai/seed --local for local install
  • Replace npm i -g @chrisai/seed -- --config-dir with npx @chrisai/seed --config-dir for custom directory

Problem

  1. Global install (Fixes npm i -g @chrisai/seed installs silently but seed command is not available #1): npm i -g @chrisai/seed registers the seed binary but never runs the installer to copy files to ~/.claude/commands/seed/. The package has no postinstall script, so npm install alone doesn't trigger the file copy.

  2. Local/custom install (npm 7+): The -- separator causes npm 7+ to treat --local and --config-dir as separate package names to install, resulting in a 404 Not Found error. In npm 6, -- forwarded arguments to lifecycle scripts, but this behavior was removed in npm 7.

Fix

Use npx @chrisai/seed for all install methods, which directly executes the install script and correctly passes flags like --local and --config-dir.

Tested

  • npx @chrisai/seed — installs to ~/.claude/commands/seed/
  • npx @chrisai/seed --local — installs to ./.claude/commands/seed/ (project only)
  • Verified no cross-contamination between global and local installs

🤖 Generated with Claude Code

Sajith-K-Sasi and others added 2 commits March 30, 2026 11:33
On npm 7+, `--` causes npm to treat subsequent flags as package names,
resulting in a 404 error. Replace with `npx` which correctly passes
flags to the install script.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
`npm i -g @chrisai/seed` registers the bin but does not run the
installer to copy files to ~/.claude/commands/seed/. Replace all
install commands with `npx @chrisai/seed` which correctly executes
the install script across all npm versions.

Fixes ChristopherKahler#1

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@igneusz
Copy link
Copy Markdown

igneusz commented Apr 4, 2026

npx doesn't work either. Claude is trying to read files from .claude/skills/seed/ not from .claude/commands/seed/ so it fails.

I had to manually copy seed dir from commands to skills and then it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm i -g @chrisai/seed installs silently but seed command is not available

3 participants