sindresorhus / trash-cli

Move files and folders to the trash
MIT License
1.32k stars 35 forks source link

Can't find the files! #10

Closed abhigenie92 closed 7 years ago

abhigenie92 commented 8 years ago

Using zsh on kubuntu 16.04.

 ✘  ~  sudo npm install --global trash-cli
/usr/local/bin/trash -> /usr/local/lib/node_modules/trash-cli/cli.js
/usr/local/lib
`-- trash-cli@1.3.0 

 ~  take new
 ~/new  .. 
 ~  trash new
/usr/bin/env: ‘node’: No such file or directory
 ~  touch hello
 ~  trash hello
/usr/bin/env: ‘node’: No such file or directory
SamVerschueren commented 8 years ago

What does node -v gives you?

Also using sudo to install global packages is not really a good option. Checkout this read.

abhigenie92 commented 8 years ago
node -v
The program 'node' is currently not installed. You can install it by typing:
sudo apt install nodejs-legacy
zsh: command not found: node

I installed nodejs-legacy, now it shows no error, but the files are not present in the trash.

SamVerschueren commented 8 years ago

Might be better to checkout this page in order to install Node.js on linux.