Closed5

M1 Mac proでSlack CLIを導入した

mohimohi

スペック
dockerとvscodeくらいしかダウンロードしていない環境

mohimohi

早々に引っかかった。

$ curl -fsSL https://downloads.slack-edge.com/slack-cli/install.sh | bash 

👋 Starting to download and install the Slack CLI and its dependencies...

 Finding the latest Slack CLI release version

📦 Installing the Slack CLI

Downloading the Slack CLI: https://downloads.slack-edge.com/slack-cli/slack_cli_1.12.0_macOS_64-bit.tar.gz
######################################################################## 100.0%
Extracting the Slack CLI: /Users/mohi/.slack/bin/slack
Adding a symbolic link /usr/local/bin/slack to /Users/mohi/.slack/bin/slack 
Installer doesn't have write access to /usr/local/bin to create a symbolic link. Script will try with sudo privileges
Password:
ln: /usr/local/bin/slack: No such file or directory

どうやら書いてある通り「/usr/local/bin/slack」がないらしい
ディレクトリの確認をしたところ「/usr/local/」までしかディレクトリがなかったので、binディレクトリを追加(当たり前にあるものだと思ってた)

mohimohi

無事完了

$ curl -fsSL https://downloads.slack-edge.com/slack-cli/install.sh | bash

👋 Starting to download and install the Slack CLI and its dependencies...

 Finding the latest Slack CLI release version

📦 Installing the Slack CLI

Downloading the Slack CLI: https://downloads.slack-edge.com/slack-cli/slack_cli_1.12.0_macOS_64-bit.tar.gz
######################################################################## 100.0%
Extracting the Slack CLI: /Users/mohi/.slack/bin/slack
Adding a symbolic link /usr/local/bin/slack to /Users/mohi/.slack/bin/slack 
Installer doesn't have write access to /usr/local/bin to create a symbolic link. Script will try with sudo privileges

✨ Slack CLI was installed successfully

📦 Checking dependency: Deno

Installing Deno using Homebrew...
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
autocorrect

==> Downloading https://ghcr.io/v2/homebrew/core/deno/manifests/1.26.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/deno/blobs/sha256:f1f0145689b0c
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Pouring deno--1.26.0.arm64_monterey.bottle.tar.gz
==> Caveats
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
==> Summary
🍺  /opt/homebrew/Cellar/deno/1.26.0: 10 files, 74.2MB
==> Running `brew cleanup deno`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
✨ Deno is installed and ready!

📦 You have Visual Studio Code installed. Adding deno extension to enhance your development experience.

Installing extensions...
Installing extension 'denoland.vscode-deno'...
(node:9235) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Electron --trace-deprecation ...` to show where the warning was created)
Extension 'denoland.vscode-deno' v3.13.1 was successfully installed.

📄 Use of the Slack CLI should comply with the Slack API Terms of Service:
   https://slack.com/terms-of-service/api

✨ You're all set! Next, authorize your CLI in your workspace with slack login
mohimohi

買ったばかりのMacだとbinフォルダないという知見を得ました
無事インストール完了
以降の操作は参考URLか、公式を参考に

このスクラップは2022/10/11にクローズされました