pixegami / terminal-profile

This is my profile for UNIX (MacOS/Linux) terminals.
551 stars 157 forks source link

zsh: command not found #2

Open GeorgeFlorian opened 1 year ago

GeorgeFlorian commented 1 year ago

After installing this profile II can't use npm or npx commands anymore.

sulaimanbarki commented 1 year ago

Same here

sulaimanbarki commented 1 year ago

hey @GeorgeFlorian, if you had previously added npm or npx paths to your ~/.bashrc, you need to edit the ~/.zshrc configuration file for zsh terminal, because it brings another config file ~/.zshrc file where you need to enter these entries separately. It worked for me.

abhinna1 commented 12 months ago

Recieved the same issue with flutter. The None of the PATH variable commands were working with the terminal. Not aware of any fixes so far.

lowryel commented 7 months ago

Add the directory containing the go executable (commonly /usr/local/go/bin) to the ~/.zshrc file and restart the terminal. E.g. export PATH=$PATH:/usr/local/go/bin then execute this chmod +x $(which go)

sir-george2500 commented 3 days ago

vim or nvim ~/.zshrc and the path like it's stated by @lowryel below is a example

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:/usr/local/go/bin/swag
export PATH=$PATH:$(go env GOPATH)/bin