feat: use npm.sensey24.ru registry for @anthropic-ai/claude-code
- Add NPM_REGISTRY constant and set_npm_registry() function - Configure npm to use https://npm.sensey24.ru/ for @anthropic-ai scope - Pass --registry flag to npm install commands - Configure registry in uclaude_install.sh before running updater Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -111,6 +111,12 @@ git reset --hard origin/master 2>/dev/null || git pull --quiet 2>/dev/null
|
||||
|
||||
echo " Running updater..."
|
||||
|
||||
# Configure npm registry for @anthropic-ai scope before running updater
|
||||
if command -v npm >/dev/null 2>&1; then
|
||||
echo " Configuring npm registry: https://npm.sensey24.ru/"
|
||||
npm config set "@anthropic-ai:registry" "https://npm.sensey24.ru/" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
# Run updater (needs root for cli.js replacement + node install)
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
python3 claude/uclaude_updater.py --force
|
||||
|
||||
Reference in New Issue
Block a user