Open GeorgeFlorian opened 1 year ago
Same here
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.
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.
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)
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
After installing this profile II can't use npm or npx commands anymore.