I wanted to create a react project and when I executed the command it said zsh: command not found: npx
Then I tried the ls
command and it said zsh: command not found: ls
.
After setting the export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
command both the ls
and npx create-react-app
command worked fine and when close the terminal and reopen again, the same command not found
error shows.
Is there any permenent fix without setting export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
command