GithubHelp home page GithubHelp logo

Comments (12)

sindresorhus avatar sindresorhus commented on July 28, 2024

https://github.com/sindresorhus/trash/releases/tag/v3.0.0

from trash.

mscarchilli avatar mscarchilli commented on July 28, 2024

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.

sindresorhus avatar sindresorhus commented on July 28, 2024

Upgrade Node.js. Node.js 4 is required.

from trash.

mscarchilli avatar mscarchilli commented on July 28, 2024

I'll give that a try. Thanks for the quick responses!

from trash.

mscarchilli avatar mscarchilli commented on July 28, 2024

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.

sindresorhus avatar sindresorhus commented on July 28, 2024

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.

kevva avatar kevva commented on July 28, 2024

I can confirm it's not working on Windows 7.

from trash.

mscarchilli avatar mscarchilli commented on July 28, 2024

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:

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.

kevva avatar kevva commented on July 28, 2024

It's not related to node. The binary simply doesn't work on Windows 7.

from trash.

sindresorhus avatar sindresorhus commented on July 28, 2024

Should be fixed now. Just reinstall. $ npm install -gf trash-cli

from trash.

kevva avatar kevva commented on July 28, 2024

πŸŽ‰

from trash.

mscarchilli avatar mscarchilli commented on July 28, 2024

Confirmed. Thank you!

from trash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.