Build script returned

Hi. I have isuess with deploying. I have an error, but I dont know how to solve it. Who can help me.

Site: Page Not Found (main–incredible-tiramisu-a2021e.netlify.app)
Deploy log


Initializing
Complete
5:32:20 PM: build-image version: 20e1f1f500e4cbad9ea8a99bd40807bef3093551 (focal)
5:32:20 PM: buildbot version: 4ee76d98466e2dfc33516fcb7e63e2a20615fbc6
5:32:20 PM: Building without cache
5:32:20 PM: Starting to prepare the repo for build
5:32:21 PM: No cached dependencies found. Cloning fresh repo
5:32:21 PM: git clone --filter=blob:none https://github.com/SanderBrijer/PortfolioSite
5:32:21 PM: Preparing Git Reference refs/heads/main
5:32:23 PM: Starting to install dependencies
5:32:23 PM: Python version set to 3.8
5:32:23 PM: Attempting Ruby version 2.7.2, read from environment
5:32:24 PM: Using Ruby version 2.7.2
5:32:25 PM: Started restoring cached go cache
5:32:25 PM: Finished restoring cached go cache
5:32:25 PM: go version go1.19.11 linux/amd64
5:32:25 PM: Using PHP version 8.0
5:32:26 PM: Downloading and installing node v14.21.3...
5:32:26 PM: Downloading https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-x64.tar.xz...
5:32:27 PM: Computing checksum with sha256sum
5:32:27 PM: Checksums matched!
5:32:29 PM: Now using node v14.21.3 (npm v6.14.18)
5:32:29 PM: Enabling Node.js Corepack
5:32:29 PM: Started restoring cached build plugins
5:32:29 PM: Finished restoring cached build plugins
5:32:29 PM: Started restoring cached corepack dependencies
5:32:29 PM: Finished restoring cached corepack dependencies
5:32:29 PM: Started restoring cached yarn cache
5:32:29 PM: Finished restoring cached yarn cache
5:32:29 PM: No yarn workspaces detected
5:32:29 PM: Started restoring cached node modules
5:32:29 PM: Finished restoring cached node modules
5:32:30 PM: Installing npm packages using Yarn version 1.22.19
5:32:30 PM: yarn install v1.22.19
5:32:30 PM: [1/5] Validating package.json...
5:32:30 PM: [2/5] Resolving packages...
5:32:30 PM: warning nuxt > @nuxt/webpack > webpack > watchpack > watchpack-chokidar2 > chokidar > fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
5:32:31 PM: [3/5] Fetching packages...
5:32:52 PM: [4/5] Linking dependencies...
5:32:52 PM: warning nuxt > @nuxt/components@2.2.1 has unmet peer dependency consola@*.
5:32:52 PM: warning @nuxt/bridge > @babel/plugin-proposal-nullish-coalescing-operator@7.18.6 has unmet peer dependency @babel/core@^7.0.0-0.
5:32:52 PM: warning @nuxt/bridge > @babel/plugin-proposal-optional-chaining@7.21.0 has unmet peer dependency @babel/core@^7.0.0-0.
5:32:52 PM: warning @nuxt/bridge > @babel/plugin-transform-typescript > @babel/helper-create-class-features-plugin@7.22.9 has unmet peer dependency @babel/core@^7.0.0.
5:32:52 PM: warning  > nuxt-webpack-optimisations@2.2.8 has unmet peer dependency webpack@*.
5:32:52 PM: warning nuxt-webpack-optimisations > esbuild-loader@2.21.0 has unmet peer dependency webpack@^4.40.0 || ^5.0.0.
5:32:52 PM: warning nuxt-webpack-optimisations > speed-measure-webpack-plugin@1.5.0 has unmet peer dependency webpack@^1 || ^2 || ^3 || ^4 || ^5.
5:32:52 PM: warning  > @babel/eslint-parser@7.22.9 has unmet peer dependency @babel/core@>=7.11.0.
5:32:52 PM: warning @nuxt/bridge > @babel/plugin-transform-typescript@7.22.9 has unmet peer dependency @babel/core@^7.0.0-0.
5:32:52 PM: warning @nuxt/bridge > @unhead/vue@1.2.1 has unmet peer dependency vue@>=2.7 || >=3.
5:32:52 PM: warning @nuxt/bridge > @vitejs/plugin-vue2@2.2.0 has unmet peer dependency vue@^2.7.0-0.
5:32:52 PM: warning @nuxt/bridge > @babel/plugin-transform-typescript > @babel/plugin-syntax-typescript@7.22.5 has unmet peer dependency @babel/core@^7.0.0-0.
5:32:52 PM: warning @nuxt/typescript-build > fork-ts-checker-webpack-plugin@6.5.3 has unmet peer dependency webpack@>= 4.
5:32:52 PM: warning @nuxt/typescript-build > ts-loader@8.4.0 has unmet peer dependency webpack@*.
5:32:52 PM: warning @nuxtjs/eslint-config-typescript > eslint-import-resolver-typescript@2.7.1 has unmet peer dependency eslint-plugin-import@*.
5:32:52 PM: warning @nuxtjs/eslint-config-typescript > @nuxtjs/eslint-config > eslint-config-standard@16.0.3 has incorrect peer dependency eslint@^7.12.1.
5:32:52 PM: warning @nuxtjs/eslint-config-typescript > @nuxtjs/eslint-config > eslint-plugin-promise@5.2.0 has incorrect peer dependency eslint@^7.0.0.
5:32:52 PM: warning @nuxtjs/eslint-config-typescript > @typescript-eslint/eslint-plugin > tsutils@3.21.0 has unmet peer dependency typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta.
5:32:52 PM: warning @nuxtjs/eslint-module > eslint-webpack-plugin@2.7.0 has unmet peer dependency webpack@^4.0.0 || ^5.0.0.
5:32:52 PM: warning  > @tailwindcss/aspect-ratio@0.4.2 has unmet peer dependency tailwindcss@>=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1.
5:32:52 PM: warning  > @tailwindcss/forms@0.5.4 has unmet peer dependency tailwindcss@>=3.0.0 || >= 3.0.0-alpha.1.
5:32:52 PM: warning  > @tailwindcss/typography@0.4.1 has unmet peer dependency tailwindcss@>=2.0.0.
5:32:52 PM: warning  > sass-loader@10.4.1 has unmet peer dependency webpack@^4.36.0 || ^5.0.0.
5:32:52 PM: warning Workspaces can only be enabled in private projects.
5:33:01 PM: [5/5] Building fresh packages...
5:33:04 PM: success Saved lockfile.
5:33:04 PM: Done in 34.14s.
5:33:04 PM: npm packages installed using Yarn
5:33:05 PM: Install dependencies script success
5:33:05 PM: Starting build script
5:33:05 PM: Detected 1 framework(s)
5:33:05 PM: nuxt at version 2.17.1
5:33:05 PM: Section completed: initializing
Building
Failed
5:33:07 PM: Netlify Build                                                 
5:33:07 PM: ────────────────────────────────────────────────────────────────
5:33:07 PM: ​
5:33:07 PM: ❯ Version
5:33:07 PM:   @netlify/build 29.17.4
5:33:07 PM: ​
5:33:07 PM: ❯ Flags
5:33:07 PM:   baseRelDir: true
5:33:07 PM:   buildId: 64ca770247287b0e722da85c
5:33:07 PM:   deployId: 64ca770247287b0e722da85e
5:33:07 PM: ​
5:33:07 PM: ❯ Current directory
5:33:07 PM:   /opt/build/repo
5:33:07 PM: ​
5:33:07 PM: ❯ Config file
5:33:07 PM:   No config file was defined: using default values.
5:33:07 PM: ​
5:33:07 PM: ❯ Context
5:33:07 PM:   production
5:33:07 PM: ​
5:33:07 PM: Build command from Netlify app                                
5:33:07 PM: ────────────────────────────────────────────────────────────────
5:33:07 PM: ​
5:33:07 PM: $ CI= npm run build
5:33:07 PM: > client@1.0.0 build /opt/build/repo
5:33:07 PM: > nuxt build
5:33:08 PM: ℹ Merging Tailwind config from ~/tailwind.config.js
5:33:08 PM:  WARN  /opt/build/repo/content does not exist
5:33:08 PM: ℹ Parsed 0 files in 0.0 seconds
5:33:13 PM: ℹ Tailwind JIT activated
5:33:31 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
5:33:24 PM: ​
5:33:24 PM: (build.command completed in 17.2s)
5:33:24 PM: ​
5:33:31 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:33:31 PM: Failing build: Failed to build site
5:33:32 PM: Finished processing build request in 1m11.374s
Deploying
Complete
5:33:24 PM: Deploy site                                                   
5:33:24 PM: ────────────────────────────────────────────────────────────────
5:33:24 PM: ​
5:33:24 PM: Section completed: deploying
5:33:24 PM: ​
5:33:24 PM: Configuration error                                           
5:33:24 PM: ────────────────────────────────────────────────────────────────
5:33:24 PM: ​
5:33:24 PM:   Error message
5:33:24 PM:   Deploy did not succeed: Deploy directory 'dist' does not exist
5:33:24 PM: ​
5:33:24 PM:   Resolved config
5:33:24 PM:   build:
5:33:24 PM:     command: CI= npm run build
5:33:24 PM:     commandOrigin: ui
5:33:24 PM:     environment:
5:33:24 PM:       - CI
5:33:24 PM:       - NODE_VERSION
5:33:24 PM:       - NPM_FLAGS
5:33:24 PM:     publish: /opt/build/repo/dist
5:33:24 PM:     publishOrigin: ui
Cleanup
Complete
5:33:25 PM: Caching artifacts
5:33:25 PM: Started saving node modules
5:33:25 PM: Finished saving node modules
5:33:25 PM: Started saving build plugins
5:33:25 PM: Finished saving build plugins
5:33:25 PM: Started saving corepack cache
5:33:25 PM: Finished saving corepack cache
5:33:25 PM: Started saving yarn cache
5:33:29 PM: Finished saving yarn cache
5:33:29 PM: Started saving pip cache
5:33:29 PM: Finished saving pip cache
5:33:29 PM: Started saving emacs cask dependencies
5:33:29 PM: Finished saving emacs cask dependencies
5:33:29 PM: Started saving maven dependencies
5:33:29 PM: Finished saving maven dependencies
5:33:29 PM: Started saving boot dependencies
5:33:29 PM: Finished saving boot dependencies
5:33:29 PM: Started saving rust rustup cache
5:33:29 PM: Finished saving rust rustup cache
5:33:29 PM: Started saving go dependencies
5:33:29 PM: Finished saving go dependencies
Post-processing
Skipped

The error is shown here. Your publish directory in site settings is incorrect. Please set it to the correct directory.