sindresorhus / trash

Move files and directories to the trash
MIT License
2.58k stars 79 forks source link

zsh: command not found: trash #84

Closed jpullman4 closed 5 years ago

jpullman4 commented 5 years ago

I am using oh my zsh on Mac OS and ran into the Youtube comment below that found a solution to the same issue that I am having. I was able to verify usr/local/.npm-global. The comment reads as follows:

"The problem was that my npm global path prefix was set to usr/local/.npm-global as opposed to the typical default path of usr/local. This results in the trash executable not being added to your usr/local/bin. You have to reset your path in your bash or zsh profile to what the default is (Google it) and then source your zsh or bash profile again."

I am new to this command line stuff and get lost at: "You have to reset your path in your bash or zsh profile to what the default is". Could you please be more specific on how I do this (what to type in and where)?

The first two lines in my .zshrc file are (commented out): If you come from bash you might have to change your $PATH. export PATH=$HOME/bin:/usr/local/bin:$PATH

Do I need to uncomment and modify the second line? If so, what modification needs to my made? Thanks

jpullman4 commented 5 years ago

Nevermind - SOLVED following these instructions:https://mrmadhat.com/terminal/unable-use-globally-installed-npm-modules-switching-zsh/

designbyadrian commented 1 year ago

@jpullman4 the link leads to a 404 page.