I’ve been following the Part 3 HTML course, when come to Chap44, deployment, I have failed to deploy the site. All because of the build command. I’ve tried different method, redo again, uninstall and install everything again, but the problem is still the same.
In building for production and pushing to GitHub, everything seem perfect. But when come to deployment, it’s disappointing.
Does anyone have the some problem with me?
Please help to solve, thanks!
4:28:32 PM: Build ready to start
4:28:36 PM: build-image version: be42e453d6c8f171cc2f654acc29c0a8b60e6d93
4:28:36 PM: build-image tag: v3.7.1
4:28:36 PM: buildbot version: 0b01511b09101e70a768555816a3df99a1b54ffe
4:28:36 PM: Fetching cached dependencies
4:28:36 PM: Failed to fetch cache, continuing with build
4:28:36 PM: Starting to prepare the repo for build
4:28:36 PM: No cached dependencies found. Cloning fresh repo
4:28:36 PM: git clone GitHub - TJ-ThiamJoo/Moshify-HTML-CSS-: This is the record of my self-taught python learning journey. It will contain have all of my self-taught python related portfolio/tutorial/questions/answers.
4:28:37 PM: Preparing Git Reference refs/heads/main
4:28:39 PM: Starting build script
4:28:39 PM: Installing dependencies
4:28:39 PM: Python version set to 2.7
4:28:40 PM: v12.18.0 is already installed.
4:28:41 PM: Now using node v12.18.0 (npm v6.14.4)
4:28:41 PM: Started restoring cached build plugins
4:28:41 PM: Finished restoring cached build plugins
4:28:41 PM: Attempting ruby version 2.7.1, read from environment
4:28:42 PM: Using ruby version 2.7.1
4:28:42 PM: Using PHP version 5.6
4:28:42 PM: Started restoring cached node modules
4:28:42 PM: Finished restoring cached node modules
4:28:42 PM: Installing NPM modules using NPM version 6.14.4
4:28:56 PM: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I’ll try to do my best with it!
4:28:56 PM: > deasync@0.1.21 install /opt/build/repo/node_modules/deasync
4:28:56 PM: > node ./build.js
4:28:56 PM: linux-x64-node-12
exists; testing
4:28:56 PM: Binary is fine; exiting
4:28:56 PM: > core-js@2.6.12 postinstall /opt/build/repo/node_modules/core-js
4:28:56 PM: > node -e “try{require(’./postinstall’)}catch(e){}”
4:28:57 PM: > parcel-bundler@1.12.5 postinstall /opt/build/repo/node_modules/parcel-bundler
4:28:57 PM: > node -e “console.log(’\u001b[35m\u001b[1mLove Parcel? You can now donate to our open collective:\u001b[22m\u001b[39m\n > \u001b[34mhttps://opencollective.com/parcel/donate\u001b[0m’)”
4:28:57 PM: Love Parcel? You can now donate to our open collective:
4:28:57 PM: > Contribute to Parcel - Open Collective
4:28:57 PM: npm WARN Moshify@1.0.0 No description
4:28:57 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
4:28:57 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
4:28:58 PM: added 767 packages from 459 contributors and audited 769 packages in 14.309s
4:28:58 PM: 42 packages are looking for funding
4:28:58 PM: run npm fund
for details
4:28:58 PM: found 0 vulnerabilities
4:28:58 PM: NPM modules installed
4:28:58 PM: Started restoring cached go cache
4:28:58 PM: Finished restoring cached go cache
4:28:58 PM: go version go1.14.4 linux/amd64
4:28:58 PM: go version go1.14.4 linux/amd64
4:28:58 PM: Installing missing commands
4:28:58 PM: Verify run directory
4:29:00 PM:
4:29:00 PM: ────────────────────────────────────────────────────────────────
4:29:00 PM: Netlify Build
4:29:00 PM: ────────────────────────────────────────────────────────────────
4:29:00 PM:
4:29:00 PM: ❯ Version
4:29:00 PM: @netlify/build 10.2.5
4:29:00 PM:
4:29:00 PM: ❯ Flags
4:29:00 PM: deployId: 60701030258e817b5248cba9
4:29:00 PM:
4:29:00 PM: ❯ Current directory
4:29:00 PM: /opt/build/repo
4:29:00 PM:
4:29:00 PM: ❯ Config file
4:29:00 PM: No config file was defined: using default values.
4:29:00 PM:
4:29:00 PM: ❯ Context
4:29:00 PM: production
4:29:00 PM:
4:29:00 PM: ────────────────────────────────────────────────────────────────
4:29:00 PM: 1. Build command from Netlify app
4:29:00 PM: ────────────────────────────────────────────────────────────────
4:29:00 PM:
4:29:00 PM: $ parcel build index.html
4:29:01 PM: No entries found.
4:29:01 PM: at Bundler.bundle (/opt/build/repo/node_modules/parcel-bundler/src/Bundler.js:275:17)
4:29:02 PM:
4:29:02 PM: ────────────────────────────────────────────────────────────────
4:29:02 PM: “build.command” failed
4:29:02 PM: ────────────────────────────────────────────────────────────────
4:29:02 PM:
4:29:02 PM: Error message
4:29:02 PM: Command failed with exit code 1: parcel build index.html
4:29:02 PM:
4:29:02 PM: Error location
4:29:02 PM: In Build command from Netlify app:
4:29:02 PM: parcel build index.html
4:29:02 PM:
4:29:02 PM: Resolved config
4:29:02 PM: build:
4:29:02 PM: command: parcel build index.html
4:29:02 PM: commandOrigin: ui
4:29:02 PM: publish: /opt/build/repo/dist
4:29:02 PM: Caching artifacts
4:29:02 PM: Started saving node modules
4:29:02 PM: Finished saving node modules
4:29:02 PM: Started saving build plugins
4:29:02 PM: Finished saving build plugins
4:29:02 PM: Started saving pip cache
4:29:02 PM: Finished saving pip cache
4:29:02 PM: Started saving emacs cask dependencies
4:29:02 PM: Finished saving emacs cask dependencies
4:29:02 PM: Started saving maven dependencies
4:29:02 PM: Finished saving maven dependencies
4:29:02 PM: Started saving boot dependencies
4:29:02 PM: Finished saving boot dependencies
4:29:02 PM: Started saving rust rustup cache
4:29:02 PM: Finished saving rust rustup cache
4:29:02 PM: Started saving go dependencies
4:29:02 PM: Finished saving go dependencies
4:29:05 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:29:05 PM: Creating deploy upload records
4:29:05 PM: Failing build: Failed to build site
4:29:05 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
4:29:05 PM: Finished processing build request in 28.970584528s