Hi there,
I’m having problems deploying my NextJS site. I’m using yarn 4.0.2 as my package manager, but there seems to be something wrong with the cache.
3:23:57 PM: build-image version: 3ffff9df3d5419545acc1b673a54de348174406d (focal)
3:23:57 PM: buildbot version: 934981c85c779610e15ce549846b0bea212b283e
3:23:57 PM: Fetching cached dependencies
3:23:57 PM: Starting to download cache of 1.9GB
3:24:22 PM: Finished downloading cache in 24.798s
3:24:22 PM: Starting to extract cache
3:24:35 PM: Finished extracting cache in 13.321s
3:24:35 PM: Finished fetching cache in 38.278s
3:24:35 PM: Starting to prepare the repo for build
3:24:36 PM: Preparing Git Reference refs/heads/netlify-build-fix
3:24:38 PM: Starting to install dependencies
3:24:38 PM: Python version set to 3.8
3:24:38 PM: Attempting Ruby version 2.7.2, read from environment
3:24:39 PM: Using Ruby version 2.7.2
3:24:39 PM: Started restoring cached go cache
3:24:39 PM: Finished restoring cached go cache
3:24:39 PM: Installing Go version 1.17 (requested 1.17)
3:24:46 PM: go version go1.17 linux/amd64
3:24:47 PM: Using PHP version 8.0
3:24:47 PM: Started restoring cached Node.js version
3:24:48 PM: Finished restoring cached Node.js version
3:24:49 PM: v20.10.0 is already installed.
3:24:49 PM: Now using node v20.10.0 (npm v10.2.3)
3:24:49 PM: Enabling Node.js Corepack
3:24:49 PM: Started restoring cached build plugins
3:24:49 PM: Finished restoring cached build plugins
3:24:49 PM: Started restoring cached corepack dependencies
3:24:49 PM: Finished restoring cached corepack dependencies
3:24:49 PM: Started restoring cached yarn cache
3:24:49 PM: Finished restoring cached yarn cache
3:24:50 PM: No yarn workspaces detected
3:24:50 PM: Started restoring cached node modules
3:24:50 PM: Finished restoring cached node modules
3:24:50 PM: Installing npm packages using Yarn version 4.0.2
3:24:50 PM: ➤ YN0000: · Yarn 4.0.2
3:24:50 PM: ➤ YN0000: ┌ Resolution step
3:24:51 PM: Failed during stage "Install dependencies": dependency_installation script returned non-zero exit code: 1
3:24:51 PM: ➤ YN0000: └ Completed in 0s 220ms
3:24:51 PM: ➤ YN0000: ┌ Post-resolution validation
3:24:51 PM: ➤ YN0060: │ @chakra-ui/react is listed by your project with version 2.8.2, which doesn"t satisfy what @chakra-ui/storybook-addon (p83411) requests (0.0.0-dev-20230112160451).
➤ YN0060: │ react is listed by your project with version 18.2.0, which doesn"t satisfy what @storybook/addon-actions (p1eae0) and other dependencies request (^16.13.1 || ^17.0.1).
➤ YN0060: │ react-dom is listed by your project with version 18.2.0, which doesn"t satisfy what @storybook/react (pc166e) and other dependencies request (^16.8.0 || ^17.0.1).
➤ YN0060: │ react-i18next is listed by your project with version 11.18.6, which doesn"t satisfy what next-i18next (p1297e) requests (^13.3.1).
➤ YN0002: │ bankai-website@workspace:. doesn"t provide @next/env (p2e859), requested by next-sitemap.
➤ YN0002: │ bankai-website@workspace:. doesn"t provide @storybook/addons (p7506e), requested by @chakra-ui/storybook-addon.
➤ YN0002: │ bankai-website@workspace:. doesn"t provide @storybook/addons (pb2a35), requested by storybook-addon-next-router.
➤ YN0002: │ bankai-website@workspace:. doesn"t provide @storybook/api (p512e6), requested by @chakra-ui/storybook-addon.
➤ YN0002: │ bankai-website@workspace:. doesn"t provide @storybook/client-api (pdcb03), requested by storybook-addon-next-router.
➤ YN0002: │ bankai-website@workspace:. doesn"t provide @storybook/components (p388c9), requested by @chakra-ui/storybook-addon.
➤ YN0002: │ bankai-website@workspace:. doesn"t provide require-from-string (p07ffc), requested by @storybook/react.
➤ YN0002: │ bankai-website@workspace:. doesn"t provide webpack (pd4e4b), requested by babel-loader.
➤ YN0086: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code.
3:24:51 PM: ➤ YN0000: └ Completed
3:24:51 PM: ➤ YN0000: ┌ Fetch step
3:24:51 PM: ➤ YN0056: │ @aashutoshrathi/word-wrap@npm:1.2.6: Cache entry required but missing for @aashutoshrathi/word-wrap@npm:1.2.6
3:24:51 PM: ➤ YN0056: │ @ampproject/remapping@npm:2.2.1: Cache entry required but missing for @ampproject/remapping@npm:2.2.1
3:24:51 PM: ➤ YN0056: │ @babel/code-frame@npm:7.23.4: Cache entry required but missing for @babel/code-frame@npm:7.23.4
3:24:51 PM: ➤ YN0056: │ @babel/compat-data@npm:7.23.3: Cache entry required but missing for @babel/compat-data@npm:7.23.3
3:24:51 PM: ➤ YN0056: │ @babel/core@npm:7.12.9: Cache entry required but missing for @babel/core@npm:7.12.9
3:24:51 PM: ➤ YN0056: │ @babel/core@npm:7.23.3: Cache entry required but missing for @babel/core@npm:7.23.3
3:24:51 PM: ➤ YN0056: │ @babel/generator@npm:7.23.4: Cache entry required but missing for @babel/generator@npm:7.23.4
3:24:51 PM: ➤ YN0056: │ @babel/helper-annotate-as-pure@npm:7.22.5: Cache entry required but missing for @babel/helper-annotate-as-pure@npm:7.22.5
3:24:51 PM: ➤ YN0056: │ @babel/helper-builder-binary-assignment-operator-visitor@npm:7.22.15: Cache entry required but missing for @babel/helper-builder-binary-assignment-operator-visitor@npm:7.22.15
3:24:51 PM: ➤ YN0056: │ @babel/helper-compilation-targets@npm:7.22.15: Cache entry required but missing for @babel/helper-compilation-targets@npm:7.22.15
3:24:51 PM: ➤ YN0056: │ @babel/helper-create-class-features-plugin@npm:7.22.15: Cache entry required but missing for @babel/helper-create-class-features-plugin@npm:7.22.15
3:24:51 PM: ➤ YN0056: │ @babel/helper-create-regexp-features-plugin@npm:7.22.15: Cache entry required but missing for @babel/helper-create-regexp-features-plugin@npm:7.22.15
3:24:51 PM: ➤ YN0056: │ @babel/helper-define-polyfill-provider@npm:0.1.5: Cache entry required but missing for @babel/helper-define-polyfill-provider@npm:0.1.5
3:24:51 PM: ➤ YN0056: │ @babel/helper-define-polyfill-provider@npm:0.4.3: Cache entry required but missing for @babel/helper-define-polyfill-provider@npm:0.4.3
3:24:51 PM: ➤ YN0056: │ @babel/helper-environment-visitor@npm:7.22.20: Cache entry required but missing for @babel/helper-environment-visitor@npm:7.22.20
3:24:51 PM: ➤ YN0056: │ @babel/helper-function-name@npm:7.23.0: Cache entry required but missing for @babel/helper-function-name@npm:7.23.0
3:24:51 PM: ➤ YN0056: │ @babel/helper-hoist-variables@npm:7.22.5: Cache entry required but missing for @babel/helper-hoist-variables@npm:7.22.5
...
3:24:51 PM: ➤ YN0000: └ Completed
3:24:51 PM: ➤ YN0000: · Failed with errors in 0s 444ms
3:24:51 PM: Error during Yarn install
3:24:51 PM: Failing build: Failed to install dependencies
3:24:51 PM: Finished processing build request in 54.612s
My package.json:
{
"name": "bankai-website",
"version": "4.4.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"lint": "next lint",
"storybook": "start-storybook -p 6006 -s ./public STORYBOOK=true",
"build-storybook": "build-storybook -s public STORYBOOK=true",
"storyblok-backup-prod": "cd _storyblok-spaces && storyblok pull-components --space 167910",
"storyblok-sync": "yarn storyblok-backup-prod && storyblok sync --type components,datasources --source 180267 --target 167910"
},
"dependencies": {
"@chakra-ui/react": "^2.8.2",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@storyblok/react": "^2.4.7",
"crypto": "^1.0.1",
"framer-motion": "^10.16.5",
"i18next": "^23.6.0",
"next": "13.4.19",
"next-i18next": "^15.0.0",
"next-sitemap": "^3.1.24",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.34.2",
"react-i18next": "^11.18.0",
"react-icons": "^4.12.0",
"react-syntax-highlighter": "^15.5.0",
"storyblok-rich-text-react-renderer": "^2.9.0"
},
"devDependencies": {
"@babel/core": "^7.18.10",
"@chakra-ui/storybook-addon": "^4.0.16",
"@storybook/addon-actions": "^6.5.16",
"@storybook/addon-essentials": "^6.5.16",
"@storybook/addon-interactions": "^6.5.16",
"@storybook/addon-links": "^6.5.16",
"@storybook/builder-webpack5": "^6.5.16",
"@storybook/manager-webpack5": "^6.5.16",
"@storybook/react": "^6.5.16",
"@storybook/testing-library": "^0.0.13",
"@types/node": "^17.0.23",
"@types/react": "^18.0.3",
"@types/react-dom": "18.0.0",
"@types/react-syntax-highlighter": "^15.5.10",
"babel-loader": "^8.2.5",
"eslint": "8.13.0",
"eslint-config-next": "12.1.4",
"eslint-plugin-mdx": "^2.0.2",
"node-fetch": "2",
"storybook-addon-designs": "^6.3.1",
"storybook-addon-next-router": "^4.0.2",
"ts-dedent": "^2.2.0",
"typescript": "^4.6.3"
},
"packageManager": "yarn@4.0.2"
}
My .yarnrc.yml:
nodeLinker: node-modules