v2/docs/setup/remote-setup.md
When using npx claude-flow@alpha remotely, you may encounter:
ENOTEMPTY npm cache errors./claude-flow@alpha wrapper after init ⭐ FIXED!curl -fsSL https://raw.githubusercontent.com/ruvnet/claude-flow/main/install-remote.sh | bash
# Clear npm cache and reinstall
npm cache clean --force
npm uninstall -g claude-flow
npm install -g claude-flow@alpha --no-optional --legacy-peer-deps
# Verify and initialize
claude-flow --version
claude-flow init
If you're working with the source code:
# From the claude-code-flow directory
npm pack
npm install -g ./claude-flow-*.tgz
claude-flow --version
Test that everything works:
# Check version
claude-flow --version
# Test hooks
claude-flow hooks notify --message "Setup complete" --level "success"
# Check system status
claude-flow status
# ⭐ NEW: Test wrapper creation
npx claude-flow@alpha init --force
ls -la ./claude-flow*
# Should show: ./claude-flow@alpha (executable)
./claude-flow@alpha --version
npm cache clean --force
rm -rf ~/.npm/_npx
sudo npm install -g claude-flow@alpha
# or use nvm to avoid sudo
# Check global bin directory
npm config get prefix
# Add to PATH if needed
export PATH="$(npm config get prefix)/bin:$PATH"
claude-flow@alpha instead of specific versionsnpm cache clean --force before installation✅ claude-flow --version shows current version
✅ claude-flow status shows system running
✅ claude-flow hooks notify works without errors
✅ All commands available globally