Hi! I’m having trouble deploying a vuepress v1 site. I continue to get an error (see build logs at the bottom of this message).
The crux of it is, I keep on getting an error saying:
10:36:20 AM: Configuration error
10:36:20 AM:
10:36:20 AM: Error message
10:36:20 AM: Deploy did not succeed: Deploy directory ‘docs/.vuepress/dist’ does not exist
10:36:20 AM:
10:36:20 AM: Resolved config
10:36:20 AM: build:
10:36:20 AM: command: yarn docs:build
10:36:20 AM: commandOrigin: ui
10:36:20 AM: publish: /opt/build/repo/docs/.vuepress/dist
10:36:20 AM: publishOrigin: ui
I’ve been following the vuepress docs, yarn docs:dev works fine on my local host…
Here’s a link to the netlify deploy tutorial:
And if you need access to the repo:
10:35:18 AM: Build ready to start
10:35:36 AM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
10:35:36 AM: build-image tag: v4.10.1
10:35:36 AM: buildbot version: 37262c48b1f3cfa88c6caed707d29b19aef6a5a7
10:35:36 AM: Fetching cached dependencies
10:35:36 AM: Starting to download cache of 366.1MB
10:35:38 AM: Finished downloading cache in 2.328529977s
10:35:38 AM: Starting to extract cache
10:35:41 AM: Finished extracting cache in 3.21882984s
10:35:41 AM: Finished fetching cache in 5.626338247s
10:35:41 AM: Starting to prepare the repo for build
10:35:42 AM: Preparing Git Reference refs/heads/master
10:35:42 AM: Parsing package.json dependencies
10:35:43 AM: Starting build script
10:35:43 AM: Installing dependencies
10:35:43 AM: Python version set to 2.7
10:35:43 AM: Started restoring cached node version
10:35:44 AM: Finished restoring cached node version
10:35:45 AM: Downloading and installing node v16.17.0…
10:35:45 AM: Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.xz…
10:35:45 AM: Computing checksum with sha256sum
10:35:45 AM: Checksums matched!
10:35:48 AM: Now using node v16.17.0 (npm v8.15.0)
10:35:48 AM: Started restoring cached build plugins
10:35:48 AM: Finished restoring cached build plugins
10:35:48 AM: Attempting ruby version 2.7.2, read from environment
10:35:48 AM: Using ruby version 2.7.2
10:35:48 AM: Using PHP version 8.0
10:35:48 AM: Started restoring cached yarn cache
10:35:53 AM: Finished restoring cached yarn cache
10:35:53 AM: No yarn workspaces detected
10:35:53 AM: Started restoring cached node modules
10:35:53 AM: Finished restoring cached node modules
10:35:54 AM: Installing NPM modules using Yarn version 1.22.10
10:35:54 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
10:35:54 AM: npm WARN config location in the cache, and they are managed by
10:35:54 AM: npm WARN config cacache
.
10:35:54 AM: yarn install v1.22.10
10:35:54 AM: 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.
10:35:54 AM: [1/4] Resolving packages…
10:35:55 AM: [2/4] Fetching packages…
10:35:56 AM: info fsevents@1.2.13: The platform “linux” is incompatible with this module.
10:35:56 AM: info “fsevents@1.2.13” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-android-arm64@0.14.7: The platform “linux” is incompatible with this module.
10:35:56 AM: info “esbuild-android-arm64@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-android-arm64@0.14.7: The CPU architecture “x64” is incompatible with this module.
10:35:56 AM: info esbuild-darwin-64@0.14.7: The platform “linux” is incompatible with this module.
10:35:56 AM: info “esbuild-darwin-64@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-darwin-arm64@0.14.7: The platform “linux” is incompatible with this module.
10:35:56 AM: info “esbuild-darwin-arm64@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-darwin-arm64@0.14.7: The CPU architecture “x64” is incompatible with this module.
10:35:56 AM: info esbuild-freebsd-64@0.14.7: The platform “linux” is incompatible with this module.
10:35:56 AM: info “esbuild-freebsd-64@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-freebsd-arm64@0.14.7: The platform “linux” is incompatible with this module.
10:35:56 AM: info “esbuild-freebsd-arm64@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-freebsd-arm64@0.14.7: The CPU architecture “x64” is incompatible with this module.
10:35:56 AM: info esbuild-linux-32@0.14.7: The CPU architecture “x64” is incompatible with this module.
10:35:56 AM: info “esbuild-linux-32@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-linux-arm@0.14.7: The CPU architecture “x64” is incompatible with this module.
10:35:56 AM: info “esbuild-linux-arm@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-linux-arm64@0.14.7: The CPU architecture “x64” is incompatible with this module.
10:35:56 AM: info “esbuild-linux-arm64@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-linux-mips64le@0.14.7: The CPU architecture “x64” is incompatible with this module.
10:35:56 AM: info “esbuild-linux-mips64le@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-linux-ppc64le@0.14.7: The CPU architecture “x64” is incompatible with this module.
10:35:56 AM: info “esbuild-linux-ppc64le@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-netbsd-64@0.14.7: The platform “linux” is incompatible with this module.
10:35:56 AM: info “esbuild-netbsd-64@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-openbsd-64@0.14.7: The platform “linux” is incompatible with this module.
10:35:56 AM: info “esbuild-openbsd-64@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-sunos-64@0.14.7: The platform “linux” is incompatible with this module.
10:35:56 AM: info “esbuild-sunos-64@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-windows-32@0.14.7: The platform “linux” is incompatible with this module.
10:35:56 AM: info “esbuild-windows-32@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-windows-32@0.14.7: The CPU architecture “x64” is incompatible with this module.
10:35:56 AM: info esbuild-windows-64@0.14.7: The platform “linux” is incompatible with this module.
10:35:56 AM: info “esbuild-windows-64@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-windows-arm64@0.14.7: The platform “linux” is incompatible with this module.
10:35:56 AM: info “esbuild-windows-arm64@0.14.7” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: info esbuild-windows-arm64@0.14.7: The CPU architecture “x64” is incompatible with this module.
10:35:56 AM: info fsevents@2.3.2: The platform “linux” is incompatible with this module.
10:35:56 AM: info “fsevents@2.3.2” is an optional dependency and failed compatibility check. Excluding it from installation.
10:35:56 AM: [3/4] Linking dependencies…
10:35:57 AM: [4/4] Building fresh packages…
10:36:04 AM: success Saved lockfile.
10:36:04 AM: Done in 9.69s.
10:36:04 AM: NPM modules installed using Yarn
10:36:04 AM: Started restoring cached go cache
10:36:04 AM: Finished restoring cached go cache
10:36:04 AM: Installing Go version 1.17 (requested 1.17)
10:36:09 AM: unset GOOS;
10:36:09 AM: unset GOARCH;
10:36:09 AM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.17.linux.amd64’;
10:36:09 AM: export PATH=“/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}”;
10:36:09 AM: go version >&2;
10:36:09 AM: export GIMME_ENV=“/opt/buildhome/.gimme/env/go1.17.linux.amd64.env”
10:36:09 AM: go version go1.17 linux/amd64
10:36:09 AM: Installing missing commands
10:36:09 AM: Verify run directory
10:36:10 AM:
10:36:10 AM: ────────────────────────────────────────────────────────────────
10:36:10 AM: Netlify Build
10:36:10 AM: ────────────────────────────────────────────────────────────────
10:36:10 AM:
10:36:10 AM: ❯ Version
10:36:10 AM: @netlify/build 27.17.1
10:36:10 AM:
10:36:10 AM: ❯ Flags
10:36:10 AM: baseRelDir: true
10:36:10 AM: buildId: 632121c6ca56300ccb87395e
10:36:10 AM: deployId: 632121c6ca56300ccb873960
10:36:10 AM:
10:36:10 AM: ❯ Current directory
10:36:10 AM: /opt/build/repo
10:36:10 AM:
10:36:10 AM: ❯ Config file
10:36:10 AM: No config file was defined: using default values.
10:36:10 AM:
10:36:10 AM: ❯ Context
10:36:10 AM: production
10:36:10 AM:
10:36:10 AM: ────────────────────────────────────────────────────────────────
10:36:10 AM: 1. Build command from Netlify app
10:36:10 AM: ────────────────────────────────────────────────────────────────
10:36:10 AM:
10:36:10 AM: $ yarn docs:build
10:36:10 AM: yarn run v1.22.10
10:36:10 AM: $ vuepress build docs
10:36:11 AM: wait Extracting site metadata…
10:36:11 AM: tip Apply theme @vuepress/theme-default …
10:36:11 AM: tip Apply plugin container (i.e. “vuepress-plugin-container”) …
10:36:11 AM: tip Apply plugin @vuepress/register-components (i.e. “@vuepress/plugin-register-components”) …
10:36:11 AM: tip Apply plugin @vuepress/active-header-links (i.e. “@vuepress/plugin-active-header-links”) …
10:36:11 AM: tip Apply plugin @vuepress/nprogress (i.e. “@vuepress/plugin-nprogress”) …
10:36:11 AM: tip Apply plugin @vuepress/last-updated (i.e. “@vuepress/plugin-last-updated”) …
10:36:11 AM: tip Apply plugin @vuepress/search (i.e. “@vuepress/plugin-search”) …
10:36:12 AM: [info] [webpackbar] Compiling Client
10:36:12 AM: [info] [webpackbar] Compiling Server
10:36:16 AM: [success] [webpackbar] Server: Compiled successfully in 4.71s
10:36:20 AM: [success] [webpackbar] Client: Compiled successfully in 7.91s
10:36:20 AM: wait Rendering static HTML…
10:36:20 AM: success Generated static files in public.
10:36:20 AM: Done in 9.43s.
10:36:20 AM:
10:36:20 AM: (build.command completed in 9.5s)
10:36:20 AM:
10:36:20 AM: ────────────────────────────────────────────────────────────────
10:36:20 AM: 2. Deploy site
10:36:20 AM: ────────────────────────────────────────────────────────────────
10:36:20 AM:
10:36:20 AM:
10:36:20 AM: ────────────────────────────────────────────────────────────────
10:36:20 AM: Configuration error
10:36:20 AM: ────────────────────────────────────────────────────────────────
10:36:20 AM:
10:36:20 AM: Error message
10:36:20 AM: Deploy did not succeed: Deploy directory ‘docs/.vuepress/dist’ does not exist
10:36:20 AM:
10:36:20 AM: Resolved config
10:36:20 AM: build:
10:36:20 AM: command: yarn docs:build
10:36:20 AM: commandOrigin: ui
10:36:20 AM: publish: /opt/build/repo/docs/.vuepress/dist
10:36:20 AM: publishOrigin: ui
10:36:20 AM: Caching artifacts
10:36:20 AM: Started saving node modules
10:36:20 AM: Finished saving node modules
10:36:20 AM: Started saving build plugins
10:36:20 AM: Finished saving build plugins
10:36:20 AM: Started saving yarn cache
10:36:24 AM: Finished saving yarn cache
10:36:24 AM: Started saving pip cache
10:36:24 AM: Finished saving pip cache
10:36:24 AM: Started saving emacs cask dependencies
10:36:24 AM: Finished saving emacs cask dependencies
10:36:24 AM: Started saving maven dependencies
10:36:24 AM: Finished saving maven dependencies
10:36:24 AM: Started saving boot dependencies
10:36:25 AM: Finished saving boot dependencies
10:36:25 AM: Started saving rust rustup cache
10:36:25 AM: Finished saving rust rustup cache
10:36:25 AM: Started saving go dependencies
10:36:25 AM: Finished saving go dependencies
10:36:28 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:36:28 AM: Creating deploy upload records
10:36:28 AM: Failing build: Failed to build site
10:36:28 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
10:36:28 AM: Finished processing build request in 52.410790641s