Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4f76fb132 | ||
|
|
3725fe31ee |
No files matched your search
@@ -8,11 +8,7 @@ param(
|
|||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
$root = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
|
$root = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
|
||||||
. (Join-Path $root 'scripts/lib/install-targets.ps1')
|
. (Join-Path $root 'scripts/lib/install-targets.ps1')
|
||||||
$selectedClient = $Client
|
|
||||||
$selectedKey = $Key
|
|
||||||
. (Join-Path $root 'scripts/lib/with-credential.ps1')
|
. (Join-Path $root 'scripts/lib/with-credential.ps1')
|
||||||
$Client = $selectedClient
|
|
||||||
$Key = $selectedKey
|
|
||||||
|
|
||||||
if (-not $Client) { $Client = Read-InstallClient -Client $Client }
|
if (-not $Client) { $Client = Read-InstallClient -Client $Client }
|
||||||
if (-not $Key) { $Key = Read-Host 'Credential key' }
|
if (-not $Key) { $Key = Read-Host 'Credential key' }
|
||||||
|
|||||||
@@ -6,11 +6,7 @@ param(
|
|||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
$root = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
|
$root = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
|
||||||
. (Join-Path $root 'scripts/lib/install-targets.ps1')
|
. (Join-Path $root 'scripts/lib/install-targets.ps1')
|
||||||
$selectedClient = $Client
|
|
||||||
$selectedKey = $Key
|
|
||||||
. (Join-Path $root 'scripts/lib/with-credential.ps1')
|
. (Join-Path $root 'scripts/lib/with-credential.ps1')
|
||||||
$Client = $selectedClient
|
|
||||||
$Key = $selectedKey
|
|
||||||
|
|
||||||
if (-not $Client) { $Client = Read-InstallClient -Client $Client }
|
if (-not $Client) { $Client = Read-InstallClient -Client $Client }
|
||||||
if (-not $Key) { $Key = Read-Host 'Credential key to remove' }
|
if (-not $Key) { $Key = Read-Host 'Credential key to remove' }
|
||||||
|
|||||||
@@ -83,6 +83,9 @@ def run_command(arguments, summary=False, home=None):
|
|||||||
if executable is None:
|
if executable is None:
|
||||||
raise ValueError(f'{arguments[0]} CLI is required to manage plugins.')
|
raise ValueError(f'{arguments[0]} CLI is required to manage plugins.')
|
||||||
environment = os.environ.copy()
|
environment = os.environ.copy()
|
||||||
|
# npm 12 defaults allow-remote to none, so Claude's install of an npm plugin source (a registry tarball URL) fails
|
||||||
|
# with EALLOWREMOTE. "root" is not enough there; "all" applies only to this child process, and a user value wins.
|
||||||
|
environment.setdefault('npm_config_allow_remote', 'all')
|
||||||
if home is not None:
|
if home is not None:
|
||||||
environment.update(HOME=str(home), USERPROFILE=str(home), CODEX_HOME=str(home / '.codex'), CLAUDE_CONFIG_DIR=str(home / '.claude'))
|
environment.update(HOME=str(home), USERPROFILE=str(home), CODEX_HOME=str(home / '.codex'), CLAUDE_CONFIG_DIR=str(home / '.claude'))
|
||||||
result = subprocess.run([executable, *arguments[1:]], stdin=subprocess.DEVNULL,
|
result = subprocess.run([executable, *arguments[1:]], stdin=subprocess.DEVNULL,
|
||||||
|
|||||||
Reference in new issue
Block a user