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?

Macでtreeコマンドを使う

Posted at

やりたいこと

Macでtreeコマンドを叩くと以下エラーとなるため、treeコマンドが使えるようにする。

zsh: command not found: tree

手順

※homebrewインストール済みの状態で

brew install tree

結果

my-kakeibo-appというReactプロジェクトで、もう一度treeコマンドを実行してみる
※-Lオプションは、階層の深さを指定する

my-kakeibo-app % tree -L 1
.
├── README.md
├── app
├── eslint.config.mjs
├── lib
├── next-env.d.ts
├── next.config.ts
├── node_modules
├── package-lock.json
├── package.json
├── postcss.config.mjs
├── public
├── src
└── tsconfig.json

6 directories, 8 files

完了🎉

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?