0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Denoの環境構築 Mac

Posted at

環境

Mac Monterey 12.3.1

インストール方法

1 ターミナルを開き、下記のコマンドを実行し、Denoをインストールする

curl -fsSL https://deno.land/x/install/install.sh | sh

2 .zshrcファイルを下記のコマンドで開く

open ~/.zshrc

※この時、error等のメッセージが出てきたら、ファイルがない可能性があるので、
下記のコマンドを実行し、ファイルを作成する

touch ~/.zshrc

3 .zshrcファイルを開けたら、下記の内容を記述し、保存する
※下記の内容は、1でインストールが終了した時に記述されている

  export DENO_INSTALL="/Users/[ホーム名]/.deno"
  export PATH="$DENO_INSTALL/bin:$PATH"

4 ターミナルを再起動し、下記のコマンドを入力する

deno

Deno (1.22.1)←ここはインストール時のバージョンに依存する
>

まとめ

上記、1~4の手順を実施することで、Denoのインストールを行うことができる。
brewでも インストールは可能なので、簡単だと思った方を各自で実施してください。
また、touch ~/.zshrcでファイルを作成することを知らなかったので、
思いのほか時間がかかったので、備忘録としてこの記事を書きました。
一人でも多くの方にお役に立てましたら、幸いです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?