我正在努力将网站上传到 netlify,非常感谢您的帮助。我正在努力准备申请工作,而且我对编程总体来说还很陌生。我真的很感激一些帮助,因为我真的很想得到我梦想的视频游戏编程工作。
11:54:41 AM: build-image version: 006dca901dab83234b4881f914ac1a189ff41daa (focal)
11:54:41 AM: buildbot version: 91afcc08587ca1ca63cf1aa8edb323949ceee060
11:54:41 AM: Building without cache
11:54:41 AM: Starting to prepare the repo for build
11:54:41 AM: No cached dependencies found. Cloning fresh repo
11:54:41 AM: git clone --filter=blob:none https://github.com/Sonica1031/Sonica1031.github.io
11:54:41 AM: Preparing Git Reference refs/heads/master
11:54:43 AM: Starting to install dependencies
11:54:44 AM: Python version set to 3.8
11:54:44 AM: Attempting Ruby version 2.6.2, read from environment
11:54:44 AM: Required ruby-2.6.2 is not installed - installing.
11:54:44 AM: Searching for binary rubies, this might take some time.
11:54:44 AM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.2.tar.bz2
11:54:44 AM: Checking requirements for ubuntu.
11:54:45 AM: Requirements installation successful.
11:54:45 AM: ruby-2.6.2 - #configure
11:54:45 AM: ruby-2.6.2 - #download
11:54:45 AM: ruby-2.6.2 - #validate archive
11:54:48 AM: ruby-2.6.2 - #extract
11:54:50 AM: ruby-2.6.2 - #validate binary
11:54:50 AM: ruby-2.6.2 - #setup
11:54:51 AM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2@global
11:54:51 AM: ruby-2.6.2 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
11:54:51 AM: ruby-2.6.2 - #generating global wrappers........
11:54:51 AM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2
11:54:51 AM: ruby-2.6.2 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
11:54:51 AM: ruby-2.6.2 - #generating default wrappers........
11:54:52 AM: Using /opt/buildhome/.rvm/gems/ruby-2.6.2
11:54:52 AM: Using Ruby version 2.6.2
11:54:52 AM: Started restoring cached go cache
11:54:52 AM: Finished restoring cached go cache
11:54:52 AM: Installing Go version 1.12 (requested 1.12)
11:54:56 AM: go version go1.12 linux/amd64
11:54:57 AM: Using PHP version 8.0
11:54:58 AM: Downloading and installing node v18.20.4...
11:54:58 AM: Downloading https://nodejs.org/dist/v18.20.4/node-v18.20.4-linux-x64.tar.xz...
11:54:59 AM: Computing checksum with sha256sum
11:54:59 AM: Checksums matched!
11:55:01 AM: Now using node v18.20.4 (npm v10.7.0)
11:55:01 AM: Enabling Node.js Corepack
11:55:01 AM: Started restoring cached build plugins
11:55:01 AM: Finished restoring cached build plugins
11:55:01 AM: Started restoring cached corepack dependencies
11:55:01 AM: Finished restoring cached corepack dependencies
11:55:01 AM: Started restoring cached yarn cache
11:55:01 AM: Finished restoring cached yarn cache
11:55:01 AM: Installing Yarn version 1.17.0
11:55:01 AM: Preparing [email protected] for immediate activation...
11:55:01 AM: No yarn workspaces detected
11:55:01 AM: Started restoring cached node modules
11:55:01 AM: Finished restoring cached node modules
11:55:02 AM: Installing npm packages using Yarn version 1.17.0
11:55:02 AM: yarn install v1.17.0
11:55:02 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.
11:55:02 AM: [1/4] Resolving packages...
11:55:03 AM: warning babel-preset-react-app > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
11:55:03 AM: warning babel-preset-react-app > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
11:55:03 AM: warning babel-preset-react-app > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
11:55:03 AM: warning babel-preset-react-app > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
11:55:03 AM: warning babel-preset-react-app > @babel/preset-env > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
11:55:03 AM: warning babel-preset-react-app > @babel/preset-env > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
11:55:03 AM: warning babel-preset-react-app > @babel/preset-env > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
11:55:03 AM: warning babel-preset-react-app > @babel/preset-env > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-json-strings instead.
11:55:03 AM: warning babel-preset-react-app > @babel/preset-env > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.
11:55:03 AM: warning babel-preset-react-app > @babel/preset-env > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
11:55:03 AM: warning babel-preset-react-app > @babel/preset-env > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.
11:55:03 AM: warning babel-preset-react-app > @babel/preset-env > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.
11:55:03 AM: warning babel-preset-react-app > @babel/preset-env > @babel/preset-modules > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.
11:55:03 AM: warning babel-preset-react-app > @babel/preset-env > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
11:55:03 AM: warning react-scripts > babel-preset-react-app > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
11:55:03 AM: warning react-scripts > babel-preset-react-app > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
11:55:03 AM: warning react-scripts > babel-preset-react-app > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
11:55:03 AM: warning react-scripts > babel-preset-react-app > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
11:55:04 AM: warning react-scripts > [email protected]: this package has been deprecated
11:55:04 AM: warning react-scripts > babel-preset-react-app > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.
11:55:04 AM: warning react-scripts > eslint > @humanwhocodes/[email protected]: Use @eslint/config-array instead
11:55:05 AM: warning react-scripts > source-map-loader > [email protected]: Use your platform's native atob() and btoa() methods instead
warning react-scripts > webpack-dev-server > [email protected]: Rimraf versions prior to v4 are no longer supported
11:55:05 AM: warning react-scripts > jest > @jest/core > [email protected]: Rimraf versions prior to v4 are no longer supported
11:55:05 AM: warning react-scripts > workbox-webpack-plugin > [email protected]: this package has been deprecated
11:55:06 AM: warning react-scripts > eslint > file-entry-cache > flat-cache > [email protected]: Rimraf versions prior to v4 are no longer supported
11:55:06 AM: warning react-scripts > eslint > @humanwhocodes/config-array > @humanwhocodes/[email protected]: Use @eslint/object-schema instead
11:55:06 AM: warning react-scripts > react-dev-utils > fork-ts-checker-webpack-plugin > [email protected]: this will be v4
11:55:06 AM: warning react-scripts > webpack-dev-server > webpack-dev-middleware > [email protected]: this will be v4
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: [email protected]
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-broadcast-update > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-background-sync > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-cacheable-response > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-expiration > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: It is not compatible with newer versions of GA starting with v4, as long as you are using GAv3 it should be ok, but the package is not longer being maintained
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-google-analytics > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-google-analytics > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-navigation-preload > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-precaching > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-recipes > [email protected]: [email protected]
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-recipes > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-recipes > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-recipes > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-range-requests > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-google-analytics > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-precaching > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-recipes > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-strategies > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-streams > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-google-analytics > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-precaching > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-recipes > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-streams > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-routing > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > workbox-window > [email protected]: this package has been deprecated
11:55:07 AM: warning react-scripts > workbox-webpack-plugin > workbox-build > [email protected]: this package has been deprecated
11:55:08 AM: warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: Use your platform's native atob() and btoa() methods instead
warning react-scripts > workbox-webpack-plugin > workbox-build > @rollup/plugin-replace > magic-string > [email protected]: Please use @jridgewell/sourcemap-codec instead
11:55:09 AM: warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > data-urls > [email protected]: Use your platform's native atob() and btoa() methods instead
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: Use your platform's native DOMException instead
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
warning @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.
11:55:09 AM: [2/4] Fetching packages...
11:55:26 AM: info [email protected]: The platform "linux" is incompatible with this module.
11:55:26 AM: info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
11:55:26 AM: [3/4] Linking dependencies...
11:55:26 AM: warning " > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
11:55:26 AM: warning "@babel/plugin-transform-private-property-in-object > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
11:55:26 AM: warning "@babel/plugin-transform-private-property-in-object > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
11:55:26 AM: warning "@babel/plugin-transform-private-property-in-object > @babel/helper-create-class-features-plugin > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
11:55:26 AM: warning " > @testing-library/[email protected]" has unmet peer dependency "@testing-library/dom@>=5".
11:55:26 AM: warning " > [email protected]" has unmet peer dependency "[email protected] - 3".
11:55:26 AM: warning " > [email protected]" has unmet peer dependency "popper.js@^1.16.0".
11:55:26 AM: warning " > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
11:55:26 AM: warning "react-scripts > eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
11:55:26 AM: warning "react-scripts > eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
11:55:26 AM: warning "react-scripts > react-dev-utils > [email protected]" has unmet peer dependency "typescript@>= 2.7".
11:55:26 AM: warning "react-scripts > eslint-config-react-app > @typescript-eslint/eslint-plugin > [email protected]" 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".
11:55:26 AM: warning " > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
11:55:41 AM: [4/4] Building fresh packages...
11:55:41 AM: success Saved lockfile.
11:55:41 AM: Done in 39.22s.
11:55:41 AM: npm packages installed using Yarn
11:55:42 AM: Successfully installed dependencies
11:55:42 AM: Starting build script
11:55:43 AM: Detected 1 framework(s)
11:55:43 AM: "create-react-app" at version "5.0.1"
11:55:43 AM: Section completed: initializing
11:55:44 AM: Netlify Build
11:55:44 AM: ────────────────────────────────────────────────────────────────
11:55:44 AM:
11:55:44 AM: ❯ Version
11:55:44 AM: @netlify/build 29.51.3
11:55:44 AM:
11:55:44 AM: ❯ Flags
11:55:44 AM: baseRelDir: true
11:55:44 AM: buildId: 669bebc5f4587846a450f3cb
11:55:44 AM: deployId: 669bebc5f4587846a450f3cd
11:55:45 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
11:55:45 AM:
11:55:45 AM: ❯ Current directory
11:55:45 AM: /opt/build/repo
11:55:45 AM:
11:55:45 AM: ❯ Config file
11:55:45 AM: /opt/build/repo/netlify.toml
11:55:45 AM:
11:55:45 AM: ❯ Context
11:55:45 AM: production
11:55:45 AM:
11:55:45 AM: Build command from Netlify app
11:55:45 AM: ────────────────────────────────────────────────────────────────
11:55:45 AM:
11:55:45 AM: $ CI=npm run build
11:55:45 AM: bash: run: command not found
11:55:45 AM:
11:55:45 AM: "build.command" failed
11:55:45 AM: ────────────────────────────────────────────────────────────────
11:55:45 AM:
11:55:45 AM: Error message
11:55:45 AM: Command failed with exit code 127: CI=npm run build (https://ntl.fyi/exit-code-127)
11:55:45 AM:
11:55:45 AM: Error location
11:55:45 AM: In Build command from Netlify app:
11:55:45 AM: CI=npm run build
11:55:45 AM:
11:55:45 AM: Resolved config
11:55:45 AM: build:
11:55:45 AM: command: CI=npm run build
11:55:45 AM: commandOrigin: ui
11:55:45 AM: environment:
11:55:45 AM: - CI
11:55:45 AM: processing:
11:55:45 AM: skip_processing: true
11:55:45 AM: publish: /opt/build/repo/build
11:55:45 AM: publishOrigin: ui
11:55:45 AM: redirects:
11:55:45 AM: - from: /*
status: 200
to: /index.html
redirectsOrigin: config
11:55:45 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:55:45 AM: Failing build: Failed to build site
11:55:45 AM: Finished processing build request in 1m4.56s
我尝试重新更新 ruby。我尝试将 CI=npm run build 放在 package.json 和 netlify 设置上。
这就是我将项目上传到 Netlify 的方式。而不是通过命令行或类似的方式添加文件。我将获取原始文件并将它们添加到放置字段,如下所示: