northosts / wuxt

Nuxt/WordPress development environment, combining the worlds biggest CMS with the most awesome front-end application framework yet.
https://github.com/northosts/wuxt
GNU General Public License v2.0
551 stars 66 forks source link

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

Open Cally99 opened 2 years ago

Cally99 commented 2 years ago

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 fsevents@2.0.7: The platform "linux" is incompatible with this module.
info "fsevents@2.0.7" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "nuxt-buefy > buefy@0.9.10" has unmet peer dependency "vue@^2.6.11".
warning "@nuxtjs/vuetify > sass-loader@10.2.0" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
warning "@nuxtjs/vuetify > vuetify@2.5.10" has unmet peer dependency "vue@^2.6.4".
warning "@nuxtjs/vuetify > vuetify-loader@1.7.3" has unmet peer dependency "vue-template-compiler@^2.6.10".
warning "@nuxtjs/vuetify > vuetify-loader@1.7.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "@nuxtjs/vuetify > vuetify-loader > file-loader@6.2.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning " > eslint-config-standard@14.1.0" has incorrect peer dependency "eslint@>=6.2.2".
warning " > eslint-loader@3.0.0" has unmet peer dependency "webpack@^4.0.0".
warning " > sass-loader@7.3.1" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".```
Cally99 commented 2 years ago

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 commented 2 years ago

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

Cally99 commented 2 years ago

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 commented 2 years ago

@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/