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

Meow throws an error #4

Closed
reznakt opened this issue Dec 20, 2023 · 2 comments
Closed

Meow throws an error #4

reznakt opened this issue Dec 20, 2023 · 2 comments

Comments

@reznakt
Copy link

reznakt commented Dec 20, 2023

After upgrading to version 1.0.6, chmod-cli throws this error:

$ chmod-cli --mode 0o775 foo
file:///C:/Users/xxxx/.local/share/pnpm/global/5/.pnpm/meow@12.1.1/node_modules/meow/build/options.js:52
                throw new Error(errorMessages.join('\n'));
                      ^

Error: The option `alias` has been renamed to `shortFlag`. The following flags need to be updated: `--mode`
    at validateOptions (file:///C:/Users/xxxx/.local/share/pnpm/global/5/.pnpm/meow@12.1.1/node_modules/meow/build/options.js:52:9)
    at buildOptions (file:///C:/Users/xxxx/.local/share/pnpm/global/5/.pnpm/meow@12.1.1/node_modules/meow/build/options.js:87:2)
    at meow (file:///C:/Users/xxxx/.local/share/pnpm/global/5/.pnpm/meow@12.1.1/node_modules/meow/build/index.js:86:24)
    at file:///C:/Users/xxxx/.local/share/pnpm/global/5/.pnpm/chmod-cli@1.0.6/node_modules/chmod-cli/cli.js:5:13
    at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async loadESM (node:internal/process/esm_loader:34:7)
    at async handleMainPromise (node:internal/modules/run_main:66:12)

Node.js v20.9.0

Everything works OK on 1.0.5, so I would assume the problem is caused by the upgrade of meow to version 12 in 1.0.6.

jaywcjlove added a commit that referenced this issue Dec 21, 2023
jaywcjlove added a commit that referenced this issue Dec 21, 2023
@jaywcjlove
Copy link
Owner

@reznakt I'm sure I solved it

Upgrade v2.0.0

@reznakt
Copy link
Author

reznakt commented Dec 21, 2023

@reznakt I'm sure I solved it

Upgrade v2.0.0

It works now, thanks for the quick fix!

@reznakt reznakt closed this as completed Dec 21, 2023
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

No branches or pull requests

2 participants