sindresorhus / trash

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

zsh: command not found: trash #103

Closed EndlessRecess closed 4 years ago

EndlessRecess commented 4 years ago

I'm getting this error, i've tried installing this several ways. Sry I'm a newb. There is a huge laundry list when I try to install but the few first are:

$ npm install trash npm install trash deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead npm WARN bootstrap@4.4.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. ........

npm WARN chris@1.0.0 No description npm WARN chris@1.0.0 No repository field.

2 packages are looking for funding run npm fund for details

sindresorhus commented 4 years ago

It's trash-cli, not trash.

EndlessRecess commented 4 years ago

Thank you. I tried that also, and: $ npm install --global trash-cli $ npm install trash-cli

It still give me this: $ npm install --global trash-cli npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead /Users/chris/.npm-global/bin/trash -> /Users/chris/.npm-global/lib/node_modules/trash-cli/cli.js