fix: remove --prefer-offline flag to prevent stale cache errors#1440
fix: remove --prefer-offline flag to prevent stale cache errors#1440Drickon wants to merge 1 commit intobmad-code-org:mainfrom
Conversation
The --prefer-offline flag causes npm to use cached package metadata, which can be stale and fail to resolve recently published versions. Also updates deprecated --production flag to --omit=dev. Fixes bmad-code-org#1438
📝 WalkthroughWalkthroughThe npm install flags in the external module dependency installation are updated from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
just saw this - @Drickon can you update re the conflicts? |
|
no response re conflicts - reopen if resolved @Drickon |
|
Resolved the merge conflicts by rebasing onto current main. The fix now correctly preserves Note: This fix is still needed — the |
|
Conflicts resolved and rebased onto current main. Since the force-push prevented reopening this PR, created a new one: #1531 |
What
Removes the
--prefer-offlineflag from npm install commands in the module installer.Why
The
--prefer-offlineflag causes npm to use cached package metadata, which can be stale and fail to resolve recently published package versions (e.g.,diff@8.0.3). This results inETARGETerrors during fresh installations.Fixes #1438
How
--prefer-offlinefrom both npm install calls inmanager.js--productionflag to--omit=devTesting
Verified that
npm install --omit=dev --no-audit --no-fund --no-progresscorrectly installs dependencies without the stale cache issue.