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.

Mac OS を Big Sur にして npm が command not found になった時の対処方法

Last updated at Posted at 2021-12-05

結論から言うと

echo "export PATH=$HOME/.nodebrew/current/bin:$PATH" >> ~/.zprofile

ではなく

echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.zshrc

で解決した。

やったこと

最初にこれを読んだが見ている node -v の場所が違うようだった。
https://tanarizm.com/command-not-found-npm

なので、こちらをさらに参考に。
https://khom-loi.com/on/56

一旦、解決したと思ったのにまた npm のパスが通らなくなったので、下記を試したら直った。
https://chaika.hatenablog.com/entry/2021/03/26/083000

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?