Skip to content

Conversation

@kaitranntt
Copy link
Owner

Problem

ccs update was reporting success but serving cached package versions from npm, requiring users to manually run npm cache clean --force to get the latest version.

Solution

Automatically clear package manager cache before updating in all three implementations:

  • npm: npm cache clean --force
  • yarn: yarn cache clean
  • pnpm: pnpm store prune
  • bun: No cache clearing needed

Changes

  • ✅ Node.js (bin/ccs.js): Added cache clearing for all package managers
  • ✅ Bash (lib/ccs): Added npm cache clean before update
  • ✅ PowerShell (lib/ccs.ps1): Added npm cache clean before update
  • ✅ Updated manual fallback commands to include cache clearing
  • ✅ Non-blocking: continues with update even if cache clearing fails

Testing

  • Syntax checks pass for all implementations
  • Version bumped to 4.3.10
  • CHANGELOG updated

Impact

Users no longer need to manually clear cache before updating. ccs update now guarantees fresh downloads from the registry.

…ads (v4.3.10)

Resolves issue where 'ccs update' would report success but serve cached package versions, requiring manual 'npm cache clean --force'.

Changes:
- Node.js (bin/ccs.js): Added cache clearing for npm, yarn, pnpm before update
- Bash (lib/ccs): Added 'npm cache clean --force' before npm update
- PowerShell (lib/ccs.ps1): Added 'npm cache clean --force' before npm update
- Updated manual fallback commands to include cache clearing
- Non-blocking: continues with update even if cache clearing fails

Version bumped to 4.3.10
@kaitranntt kaitranntt merged commit 0f82b0c into main Nov 23, 2025
1 check passed
@kaitranntt kaitranntt deleted the claude/fix-ccs-update-cache-01SAmfdZ2BboTDXPsshamfGN branch November 23, 2025 02:43
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.

3 participants