При попытке установить пакеты с помощью yarn install
возникает ошибка вида:
yarn install YN0000: · Yarn 4.1.0 YN0000: ┌ Resolution step YN0085: │ + @vueuse/core@npm:10.7.2, @vueuse/nuxt@npm:10.7.2, bootstrap@npm:5.3.2, nuxt@npm:3.10.0, sass@npm:1.70.0, vue-router@npm:4.2.5, and 742 more. YN0000: └ Completed in 5s 552ms YN0000: ┌ Post-resolution validation YN0002: │ nuxt-app@workspace:. doesn't provide @popperjs/core (pd2f22), requested by bootstrap. YN0086: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirementsfor details, where is the six-letter p-prefixed code. YN0000: └ Completed YN0000: ┌ Fetch step YN0013: │ A package was added to the project (+ 3.81 MiB). YN0000: └ Completed in 0s 699ms YN0000: ┌ Link step YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental YN0007: │ vue-demi@npm:0.14.6 [571a2] must be built because it never has been before or the last one failed YN0007: │ esbuild@npm:0.20.0 must be built because it never has been before or the last one failed YN0007: │ esbuild@npm:0.19.12 must be built because it never has been before or the last one failed YN0007: │ nuxt-app@workspace:. must be built because it never has been before or the last one failed YN0009: │ nuxt-app@workspace:. couldn't be built successfully (exit code 1, logs can be found here: C:\Users\Denis\AppData\Local\Temp\xfs-1f1d39c4\build.log) YN0000: └ Completed in 2s 877ms YN0000: · Failed with errors in 9s 274ms
Для ее решения создайте в корне проекта файл .yarnrc.yml
с содержимым:
nodeLinker: node-modules