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.

iTerm2のカスタマイズで.zshrcを編集したら、Reactのnpm startできなくなった

Last updated at Posted at 2022-09-03

iTerm2を以下を参考にカスタマイズをしていたら、Reactを起動できなくなった。
https://zenn.dev/nagan/articles/03af9bf1946c84

❯ npm start
zsh: command not found: npm

❯ yarn start
zsh: command not found: yarn

確かにzshを編集していた。
ただコマンドが使えないだけのよう…

{ホームディレクトリ}/.zshrc
に以下を追加

export PATH=$HOME/.nodebrew/current/bin:$PATH

リロードしたら解決

source .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?