wuxt
wuxt copied to clipboard
It takes forever to install any frontend package with yarn.
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".```
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
I've switched to npm and even though it's still a bit slow its a huge improvement over yarn
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
@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/