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

It takes forever to install any frontend package with yarn. #229

Open
Cally99 opened this issue Oct 13, 2021 · 4 comments
Open

It takes forever to install any frontend package with yarn. #229

Cally99 opened this issue Oct 13, 2021 · 4 comments

Comments

@Cally99
Copy link

Cally99 commented Oct 13, 2021

Hi there,

I've been trying to use this boilerplate all day and I've followed the readme instructions. I have the project running and i'm trying to add in front end libraries that I want to use with my project and it's taking forever to install them.

Why is it so slow and is there any quick fix?
This took more than 10 minutes to install on an i7 macbook pro 8gb running mojave
I've ran other docker projects before and never had this problem with prehistoric install times

Thanks

yarn add v1.15.2
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "nuxt-buefy > [email protected]" has unmet peer dependency "vue@^2.6.11".
warning "@nuxtjs/vuetify > [email protected]" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
warning "@nuxtjs/vuetify > [email protected]" has unmet peer dependency "vue@^2.6.4".
warning "@nuxtjs/vuetify > [email protected]" has unmet peer dependency "vue-template-compiler@^2.6.10".
warning "@nuxtjs/vuetify > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "@nuxtjs/vuetify > vuetify-loader > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning " > [email protected]" has incorrect peer dependency "eslint@>=6.2.2".
warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning " > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".```

@Cally99
Copy link
Author

Cally99 commented Nov 29, 2021

Has anyone else had this problem? I've just tried to install dayjs and I'm seeing some crazy indexing going on. taking more than ten minutes to add package with yarn

@Cally99
Copy link
Author

Cally99 commented Dec 1, 2021

I've switched to npm and even though it's still a bit slow its a huge improvement over yarn

@Cally99
Copy link
Author

Cally99 commented Dec 3, 2021

I've given up using this boilerplate. It's way too slow for development. File changes aren't happening in frontend. restarting containers take too long to get the frontend up. I wouldn't advise spending time using the frontend container. Maybe it would work better if the front-end wasn't dockerized

@liamb13
Copy link

liamb13 commented Mar 6, 2022

@Cally99 If you’re developing on Windows, you may be facing similar problems to me. I’ve recently learned the issue is actually caused by Real Time Protection in Windows Security.

There’s a few articles on the issue if you search “Windows Security and yarn”. For me, adding node and npm to the exclusion list sped up my installs dramatically.
https://ilikekillnerds.com/2017/02/yarn-slow-windows-disable-windows-defender/

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