Closed daydarkln closed 4 years ago
Please downgrade commander to 4.1.1
Please downgrade commander to 4.1.1
What do you mean? There isn't such dependency
There is a dependency. nestjs-console depends on commander package. It's a peer dependency. I updated the Readme yesterday to point out the good version.
npm install commander@4.1.1
Commander package moved to version 5.0.0. And this version is not compatible with this package. On this repo v5 branch is in progress and will be published to npm soon.
Oh, I see. Thanks. But if someone doesn't want to install dep that never use directly? Maybe you replace it from devDep to dep?
Other package like nestjs-cli that is widely used also depends on commander. As I want to be flexible, I allow you to use any version of your choice (minor or patch). This is the reason commander is a peer dependency and not a direct dependency. I always keep this package up to date with major releases of commander. Except this time, I am late...
Ok. Thank you a lot for your work.
Latest npm version 3.0.1 is now sync with commander v5.
I ran into this bug just now with version 3.0.6. I had to manually install commander@5.0.0 to get things working. I think the commander package dependency needs to be promoted from dev dependency to full dependency?
Commander is a peer dependency because it's also used by nestjs cli. We won't force a version of nestjs framework, so we decide to let you choose which version to pick. That's why it's up to you to install commander.
Describe the bug A clear and concise description of what the bug is. I catch a bug when trying to run console command via
yarn run
:To Reproduce Steps to reproduce the behavior:
yarn run console:dev update-featured-videos
Expected behavior This command must log
hi
Desktop (please complete the following information):