user13906062
user13906062

Reputation:

Why I always have to do export path=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin in the terminal before doing commands

I have installed node , homebrew etc, but as soon as I want to use them on my terminal or IDE, I get the error: zsh: command not found: npm or zsh: command not found ....

Nevertheless, as soon as I do export path=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin I have no more problems, could you please fix this?

Thanks :)

Upvotes: 1

Views: 1785

Answers (1)

user13906062
user13906062

Reputation:

I succeeded, it was going to modify the zshrc file via: nano ~/.zshrc and add export path=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/bin:/usr/sbin:/sbin and save :)

Upvotes: 0

Related Questions