-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Cannot remove "copy" module #5609
Comments
The following workaround exists:
|
Seems to work if I try to reproduce it:
OSX Sierra (bash) |
Hmm, maybe it is the order or the fact that I added it to devDependencies. I assumed these were irrelevant, but I may as well have been wrong. This is exactly how I did it, and I can still reproduce it. To make no further assumptions, the
The "dependencies" listed below Edit: |
Huh, interesting observation. Parameter parsing in general is a complete nightmare. I was in that section of code last weekend trying to do some refactoring and cleanup, and ended up reverting because it's way too hairy 😞 I'll tag this as a bug. Thanks for finding it! 👍 |
Ah you know what, I think this is a variant of #2600 - we use commander.js to parse our args, and it seems to ignore any arguments that come after an invalid/unknown arg. Both It works if the flags are after the package name because commander.js does put the package name in the parameters before ignoring the unknown flags. I wonder if those 2 flags should be added to I'm going to close this issue, and I opened #5611 to track adding a |
Good to know! Thanks for taking a look. |
What is the current behavior?
The module "copy" cannot be removed by Yarn.
What is the expected behavior?
The module "copy" can be removed by Yarn.
Steps to reproduce
Please mention your node.js, yarn and operating system version.
Node 6.10.3, Yarn 1.5.1, OS X 10.13.3
The text was updated successfully, but these errors were encountered: