Skip to content

Installation of kiro-cli on MacOS fails with non-Admin Accounts #7371

@cheasy

Description

@cheasy

Before opening, please confirm:

Operating System

macOS Tahoe 26.4.1 (25E253)

Kiro Version

kiro-cli 1.29.7

Bug Description

Installation for Kiro-cli fails for non-Admin users on MacOS (see below, cs is a standard user account, so is an admin user account).
After installing as admin user, kiro-cli is not installed into PATH.

$ curl -fsSL https://cli.kiro.dev/install | bash                                                                                ─╯
Kiro CLI installer:

Downloading package...
✓ Downloaded and extracted
⚠️ Existing Kiro CLI installation found
Do you want to replace it? (y/N):
y
rm: /Applications/Kiro CLI.app/Contents/CodeResources: Permission denied
[…]
rm: /Applications/Kiro CLI.app/Contents: Permission denied
rm: /Applications/Kiro CLI.app: Permission denied
❌ Installation failed. Cleaning up...
$ kiro-cli                                                                                                                      ─╯
zsh: command not found: kiro-cli
$ whoami                                                                                                                        ─╯
cs
$ su so                                                                                                                         ─╯
Password:
$  cs kiro-cli --version
kiro-cli 1.29.7

Steps to Reproduce

  1. install kiro-cli into a non-admin account on MacOS
  2. install fails badly
  3. install using an admin account
  4. Kiro-cli is not added to PATH

Expected Behavior

  • detect if current user as admin rights, if not, ask for them
  • alternatively, look for an already existing installation in standard locations, then augment the path accordingly when installing as non-admin user

Conversation ID

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions