Fix install docs for npm 7+#2
Open
Sajith-K-Sasi wants to merge 2 commits intoChristopherKahler:mainfrom
Open
Conversation
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>
ricardo-vargas
approved these changes
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm i -g @chrisai/seedwithnpx @chrisai/seedfor global installnpm i -g @chrisai/seed -- --localwithnpx @chrisai/seed --localfor local installnpm i -g @chrisai/seed -- --config-dirwithnpx @chrisai/seed --config-dirfor custom directoryProblem
Global install (Fixes
npm i -g @chrisai/seedinstalls silently butseedcommand is not available #1):npm i -g @chrisai/seedregisters theseedbinary but never runs the installer to copy files to~/.claude/commands/seed/. The package has nopostinstallscript, sonpm installalone doesn't trigger the file copy.Local/custom install (npm 7+): The
--separator causes npm 7+ to treat--localand--config-diras separate package names to install, resulting in a404 Not Founderror. In npm 6,--forwarded arguments to lifecycle scripts, but this behavior was removed in npm 7.Fix
Use
npx @chrisai/seedfor all install methods, which directly executes the install script and correctly passes flags like--localand--config-dir.Tested
npx @chrisai/seed— installs to~/.claude/commands/seed/npx @chrisai/seed --local— installs to./.claude/commands/seed/(project only)🤖 Generated with Claude Code