Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure when trying to show help from CLI #306

Closed
ajmas opened this issue Jul 10, 2020 · 3 comments
Closed

Failure when trying to show help from CLI #306

ajmas opened this issue Jul 10, 2020 · 3 comments
Assignees
Labels
bug Something isn't working released

Comments

@ajmas
Copy link

ajmas commented Jul 10, 2020

Describe the bug

I installed node @d0whc3r/node-gdrive locally and then the following results in an error whereby minified code is displayed followed by an error SyntaxError: Unexpected token '.':

 node_modules/.bin/node-gdrive --help        

Stack trace:

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:1070:16)
    at Module._compile (internal/modules/cjs/loader.js:1120:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47

To Reproduce
Steps to reproduce the behavior:

  1. npm install @d0whc3r/node-gdrive
  2. node_modules/.bin/node-gdrive --help

Expected behavior

Expected to have CLI help displayed

Screenshots

Screenshot 2020-07-10 at 15 46 22

Additional context

Node: v12.16.2
Version: 3.4.0
OS: macOS 10.15.5

@d0whc3r d0whc3r added the bug Something isn't working label Jul 14, 2020
@d0whc3r
Copy link
Owner

d0whc3r commented Jul 14, 2020

Thanks to report, I will check asap

@d0whc3r
Copy link
Owner

d0whc3r commented Jul 17, 2020

I used node 14 and it works

  • yarn init -y && yarn add @d0whc3r/node-gdrive && ./node_modules/.bin/node-gdrive --help - Working
  • npm init -y && npm install @d0whc3r/node-gdrive && ./node_modules/.bin/node-gdrive --help - Working
  • npx @d0whc3r/node-gdrive --help - Working

Then I used node 12.16.2 and it doesn't work

I will update build process to build with es2015

@d0whc3r
Copy link
Owner

d0whc3r commented Jul 17, 2020

🎉 This issue has been resolved in version 3.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

No branches or pull requests

2 participants