当Deploy React App To netlify显示以下错误时

12:01:31 PM: Build ready to start
12:02:15 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
12:02:15 PM: build-image tag: v3.3.2
12:02:15 PM: buildbot version: a2bab682ae0761baa4d123ebd00c57be933655dc
12:02:15 PM: Fetching cached dependencies
12:02:16 PM: Failed to fetch cache,continuing with build
12:02:16 PM: Starting to prepare the repo for build
12:02:16 PM: No cached dependencies found. Cloning fresh repo
12:02:16 PM: git clone https://github.com/nazrulcsebd/Test
12:02:17 PM: Preparing Git Reference refs/heads/master
12:02:17 PM: Starting build script
12:02:17 PM: Installing dependencies
12:02:19 PM: Downloading and installing node v10.17.0...
12:02:19 PM: Downloading https://nodejs.org/dist/v10.17.0/node-v10.17.0-linux-x64.tar.xz...
12:02:19 PM: 
#################################################
12:02:19 PM:                         68.4%
12:02:19 PM: 
###############################################################
12:02:19 PM: ######### 100.0%
12:02:20 PM: Computing checksum with sha256sum
12:02:20 PM: Checksums matched!
12:02:22 PM: Now using node v10.17.0 (npm v6.11.3)
12:02:23 PM: Attempting ruby version 2.6.2,read from environment
12:02:24 PM: Using ruby version 2.6.2
12:02:24 PM: Using PHP version 5.6
12:02:24 PM: Started restoring cached node modules
12:02:24 PM: Finished restoring cached node modules
12:02:24 PM: Installing NPM modules using NPM version 6.11.3
12:02:52 PM: > node-sass@4.12.0 install /opt/build/repo/node_modules/node-sass
12:02:52 PM: > node scripts/install.js
12:02:52 PM: Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/linux-x64-64_binding.node
12:02:53 PM: Download complete
12:02:53 PM: Binary saved to /opt/build/repo/node_modules/node-sass/vendor/linux-x64-64/binding.node
12:02:53 PM: Caching binary to /opt/buildhome/.npm/node-sass/4.12.0/linux-x64-64_binding.node
12:02:53 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js
12:02:53 PM: > node scripts/postinstall || echo "ignore"
12:02:53 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
12:02:53 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
12:02:53 PM: > https://opencollective.com/core-js 
12:02:53 PM: > https://www.patreon.com/zloirock 
12:02:53 PM: Also,the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
12:02:53 PM: > core-js-pure@3.1.4 postinstall /opt/build/repo/node_modules/core-js-pure
12:02:53 PM: > node scripts/postinstall || echo "ignore"
12:02:53 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
12:02:53 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
12:02:53 PM: > https://opencollective.com/core-js 
12:02:53 PM: > https://www.patreon.com/zloirock 
12:02:53 PM: Also,the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
12:02:54 PM: > node-sass@4.12.0 postinstall /opt/build/repo/node_modules/node-sass
12:02:54 PM: > node scripts/build.js
12:02:54 PM: Binary found at /opt/build/repo/node_modules/node-sass/vendor/linux-x64-64/binding.node
12:02:54 PM: Testing binary
12:02:54 PM: Binary is fine
12:02:56 PM: npm
12:02:56 PM:  WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/jest-haste-map/node_modules/fsevents):
12:02:56 PM: npm
12:02:56 PM: WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:02:56 PM: npm WARN
12:02:56 PM:  optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/chokidar/node_modules/fsevents):
12:02:56 PM: npm WARN notsup
12:02:56 PM:  SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"x64"})
12:02:56 PM: npm
12:02:56 PM: WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.6 (node_modules/fsevents):
12:02:56 PM: npm WARN notsup
12:02:56 PM:  SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.6: wanted {"os":"darwin","arch":"x64"})
12:02:56 PM: added 1627 packages from 898 contributors and audited 904805 packages in 30.701s
12:02:56 PM: found 0 vulnerabilities
12:02:56 PM: NPM modules installed
12:02:56 PM: Started restoring cached go cache
12:02:56 PM: Finished restoring cached go cache
12:02:57 PM: unset GOOS;
12:02:57 PM: unset goaRCH;
12:02:57 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
12:02:57 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
12:02:57 PM: go version >&2;
12:02:57 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
12:02:57 PM: go version go1.12 linux/amd64
12:02:57 PM: Installing missing commands
12:02:57 PM: Verify run directory
12:02:57 PM: Executing user command: npm run build
12:02:57 PM: > pharmacare@0.1.0 build /opt/build/repo
12:02:57 PM: > SET REact_APP_ENVironMENT=prod && react-scripts build
12:02:57 PM: sh: 1:
12:02:57 PM: SET: not found
12:02:57 PM: npm
12:02:57 PM:  ERR!
12:02:57 PM:  code
12:02:57 PM:  ELIFECYCLE
12:02:57 PM: npm
12:02:57 PM: ERR! syscall spawn
12:02:57 PM: npm ERR!
12:02:57 PM:  file sh
12:02:57 PM: npm
12:02:57 PM: ERR! errno
12:02:57 PM:  ENOENT
12:02:57 PM: npm
12:02:57 PM: ERR! pharmacare@0.1.0 build: `SET REact_APP_ENVironMENT=prod && react-scripts build`
12:02:57 PM: npm ERR!
12:02:57 PM:  spawn ENOENT
12:02:57 PM: npm
12:02:57 PM: ERR!
12:02:57 PM: npm ERR! Failed at the pharmacare@0.1.0 build script.
12:02:57 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
12:02:57 PM: npm
12:02:57 PM: ERR! A complete log of this run can be found in:
12:02:57 PM: npm
12:02:57 PM:  ERR!     /opt/buildhome/.npm/_logs/2019-11-25T06_02_57_342Z-debug.log
12:02:57 PM: Skipping functions preparation step: no functions directory set
12:02:57 PM: Caching artifacts
12:02:57 PM: Started saving node modules
12:02:57 PM: Finished saving node modules
12:02:57 PM: Started saving pip cache
12:02:57 PM: Finished saving pip cache
12:02:57 PM: Started saving emacs cask dependencies
12:02:57 PM: Finished saving emacs cask dependencies
12:02:57 PM: Started saving maven dependencies
12:02:57 PM: Finished saving maven dependencies
12:02:57 PM: Started saving boot dependencies
12:02:57 PM: Finished saving boot dependencies
12:02:57 PM: Started saving go dependencies
12:02:57 PM: Finished saving go dependencies
12:02:59 PM: Error running command: Build script returned non-zero exit code: 1
12:02:59 PM: Failing build: Failed to build site
12:03:00 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
12:03:00 PM: Finished processing build request in 44.492795416s
GFHJTYHTR 回答:当Deploy React App To netlify显示以下错误时

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3038576.html

大家都在问