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

Yarn add --modules-folder not downloading all deps #6796

Open
enfoqueNativo opened this issue Dec 4, 2018 · 3 comments
Open

Yarn add --modules-folder not downloading all deps #6796

enfoqueNativo opened this issue Dec 4, 2018 · 3 comments
Assignees
Labels

Comments

@enfoqueNativo
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Sequential adds made through composer script don't complete installation of all packages, however yarn.lock says they're installed.

Any composer.json with the following lines should be enough. Run it through composer run-script post-install-cmd

"post-install-cmd": [
            "yarn add font-awesome@4.7  --modules-folder tmp_assets/",
            "yarn add bootstrap@3.3  --no-dev --modules-folder tmp_assets/",
            "yarn add respond.js@1.4  --modules-folder tmp_assets/",
            "yarn add html5shiv@3.7 --modules-folder tmp_assets/"
]

What is the expected behavior?
Download and install the four packages on the specified folder.

Please mention your node.js, yarn and operating system version.
Node: v8.11.4
Yarn: 1.12.3
OS: OpenSuse Leap 15

@ghost ghost assigned rally25rs Dec 4, 2018
@ghost ghost added the triaged label Dec 4, 2018
@rally25rs rally25rs added cat-bug and removed triaged labels Dec 11, 2018
@rally25rs
Copy link
Contributor

rally25rs commented Dec 11, 2018

To reproduce the issue, can just run the 4 yarn commands from the command line without the post-install-cmd stuff...

For some reason yarn seems to think that the previous packages are extraneous and deletes them.

@rally25rs
Copy link
Contributor

This might be related to #5419

@enfoqueNativo
Copy link
Author

To reproduce the issue, can just run the 4 yarn commands from the command line without the post-install-cmd stuff...

For some reason yarn seems to think that the previous packages are extraneous and deletes them.

The behaviour on cmd line it's really weird too, i've executed the lines one by one followed by an "ls" of the destination folder. Dependencies comes and go with every cmd.

debug.txt

There's no node_modules folder on the directory, it seems it never gets created.

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

No branches or pull requests

2 participants