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

[Version 6.1.0] Error when running CLI #1211

Closed
linhntaim opened this issue Nov 11, 2020 · 1 comment · Fixed by #1261
Closed

[Version 6.1.0] Error when running CLI #1211

linhntaim opened this issue Nov 11, 2020 · 1 comment · Fixed by #1261

Comments

@linhntaim
Copy link

When running cli, I get this error:

C:\Users\user\AppData\Roaming\npm\node_modules\@node-minify\cli\node_modules\commander\index.js:472
      throw new Error(`option '${option.name()}' clashes with existing property '${option.attributeName()}' on Command
      ^

Error: option 'option' clashes with existing property 'option' on Command
- call storeOptionsAsProperties(false) to store option values safely,
- or call storeOptionsAsProperties(true) to suppress this check,
- or change option name

Read more on https://git.io/JJc0W
    at Command._checkForOptionNameClash (C:\Users\user\AppData\Roaming\npm\node_modules\@node-minify\cli\node_modules\commander\index.js:472:13)
    at Command._optionEx (C:\Users\user\AppData\Roaming\npm\node_modules\@node-minify\cli\node_modules\commander\index.js:499:10)
    at Command.option (C:\Users\user\AppData\Roaming\npm\node_modules\@node-minify\cli\node_modules\commander\index.js:622:17)
    at Object.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\@node-minify\cli\bin\cli.js:22:4)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47

When I get back to version 6.0.0, it runs fine! Please check. Thanks
My Node version is v14.5.

@srvh
Copy link

srvh commented Dec 5, 2020

Yes, I have the same error.
I am using CLI like this:

node-minify -c jsonminify -i manifest.json -o manifest2.json

And earlier it is worked correctly. But now I get the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants