Comments (12)
https://github.com/sindresorhus/trash/releases/tag/v3.0.0
from trash.
I tried that already and got the following:
C:\Program Files (x86)\Git\local\node_modules\trash-cli\cli.js:4
const updateNotifier = require('update-notifier');
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
from trash.
Upgrade Node.js. Node.js 4 is required.
from trash.
I'll give that a try. Thanks for the quick responses!
from trash.
Updated to Node v4.2.1
Using [email protected]
Please reopen the issue. Thank you.
$ trash test.txt
Error: Command failed: C:\Program Files (x86)\Git\local\node_modules\trash-cli\node_modules\trash\lib\win-trash.exe C:\xampp\htdocs\Projects\test.txt
at ChildProcess.exithandler (child_process.js:203:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
from trash.
Works fine for me on Windows 10. I don't have Windows 7 to test on. Maybe make sure the install was not corrupted, and try reinstalling just in case (make sure to look at the install output).
from trash.
I can confirm it's not working on Windows 7.
from trash.
I completely uninstalled Node this time and reinstalled v4.2.1 (x64). No problems with that install. Then installed trash-cli v1.1.0
Intalled trash-cli output:
$ npm install --global trash-cli
C:\Program Files (x86)\Git\local\trash -> C:\Program Files (x86)\Git\local\node_modules\trash-cli\cli.js
[email protected] C:\Program Files (x86)\Git\local\node_modules\trash-cli
βββ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
βββ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
βββ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Tried to trash my test file. Output:
$ trash test.txt
Error: Command failed: C:\Program Files (x86)\Git\local\node_modules\trash-cli\node_modules\trash\lib\win-trash.exe c:\xampp\htdocs\Projects\test.txt
at ChildProcess.exithandler (child_process.js:203:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
If you need me to try some other things just let me know.
from trash.
It's not related to node. The binary simply doesn't work on Windows 7.
from trash.
Should be fixed now. Just reinstall. $ npm install -gf trash-cli
from trash.
π
from trash.
Confirmed. Thank you!
from trash.
Related Issues (20)
- can not use in win32 os HOT 1
- Remove from trash bin? HOT 1
- Confusion for Windows + WSL HOT 2
- zsh: command not found: trash HOT 2
- Trouble deteting some files HOT 3
- Trashing a file on Windows deletes it unrecoverably if no recycle bin is enabled HOT 5
- Error on Linux if user never deleted any files HOT 2
- feat: read the recycle bin/trash folder HOT 1
- ERR_REQUIRE_ESM when including this in another project HOT 2
- A quote about express
- The import Trash will report ERROR HOT 1
- Webpack is not supported HOT 1
- no such built-in module HOT 2
- Contribution π¬: Perhaps 'procfs' dependency isn't really needed? HOT 1
- θ½ζδΎθΏεε ι€ηζΉζ³ε Can you provide a method for restoring deletion HOT 1
- How to tell whether deletion succeeded? HOT 2
- Doesn't find correct Trash folder on NixOS
- Files are renamed to a hash in KDE HOT 1
- Windows support no Win 7? HOT 1
- Readme should mention how to include the binaries HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trash.