-
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
[bug] yarn leaves failed modules in node_modules #1328
Comments
I don't have a windows machine right here so I tried to install a windows-only dependency on macOS. I can confirm this behaviour. Tried with {
"name": "yarn-1328",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"optionalDependencies": {
"edge_case": "https://github.com/paddyb/edge_case"
}
} With the current
The old yarn 17.0 (installed via brew) quits a bit earlier.
Both leave all dependencies of |
I do confirm this the case of |
Fixed via #2116. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When installing an optionalDependency that fails in a "install" script (such as an incompatible native dependency) the module folder is left behind in the node_modules directory
If the current behavior is a bug, please provide the steps to reproduce.
Make a new package.json that depends on the "mouse-forward-back" module as an optional dependency and run
yarn
on a windows machineWhat is the expected behavior?
The optionalDependency should fail to install and not be present in the node_modules folder
Please mention your node.js, yarn and operating system version.
Windows 10, Yarn
0.16.1
, Node.JS6.3.1
The text was updated successfully, but these errors were encountered: