Closed Derek-X-Wang closed 2 years ago
curl -sL https://appwrite.io/cli/install.sh | bash fails on Apple Silicon Mac
curl -sL https://appwrite.io/cli/install.sh | bash
For Apple Silicon Mac, sudo is needed when cp to "/usr/local/bin".
sudo
cp
"/usr/local/bin"
This behavior is different from Intel Mac which doesn't need sudo.
Error Log
β ~ curl -sL https://appwrite.io/cli/install.sh | bash _ _ _ ___ __ _____ /_\ _ __ _ ____ ___ __(_) |_ ___ / __\ / / \_ \ //_\| '_ \| '_ \ \ /\ / / '__| | __/ _ \ / / / / / /\/ / _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_ \_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/ |_| |_| π₯ Welcome to the Appwrite CLI install shield π‘. [1/4] Getting System Info ... OS : darwin ARCH : arm64 REQUIRES ROOT : false [2/4] Performing Checks ... π¦ Checking if docker is installed ... β Done ... πβ Checking if docker daemon is running ... β Done ... [3/4] Starting installation ... π³ Pulling docker image ... β Done ... π§ Setting Permissions β Done ... π Copying temporary file to /usr/local/bin/appwrite ... cp: /usr/local/bin/appwrite: Permission denied β Failed to copy temporary file to /usr/local/bin/appwrite ...
I made a pull request for this issue https://github.com/appwrite/sdk-generator/pull/274
Close as the pull request merged
curl -sL https://appwrite.io/cli/install.sh | bash
fails on Apple Silicon MacFor Apple Silicon Mac,
sudo
is needed whencp
to"/usr/local/bin"
.This behavior is different from Intel Mac which doesn't need
sudo
.Error Log