Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dificuldade com deploy Netlify #7

Open
BlackCode7 opened this issue May 16, 2021 · 2 comments
Open

Dificuldade com deploy Netlify #7

BlackCode7 opened this issue May 16, 2021 · 2 comments

Comments

@BlackCode7
Copy link

Boa tarde Galera! Por favor preciso de ajuda pra entender o porque este erro acontece! O netlify da um erro na construção do build! Vou tentar novamente!

Aqui este o link do meu código: https://github.com/BlackCode7/projeto_java_springboot_react/tree/master/projeto-sds3/frontend

Veja abaixo:

1:18:50 PM: Build ready to start
1:18:52 PM: build-image version: 0582042f4fc261adc7bd8333f34884959c577302
1:18:52 PM: build-image tag: v3.7.6
1:18:52 PM: buildbot version: 3934dc3e65fec0466cd25051c676f6e727c64ab1
1:18:52 PM: Fetching cached dependencies
1:18:52 PM: Failed to fetch cache, continuing with build
1:18:52 PM: Starting to prepare the repo for build
1:18:53 PM: No cached dependencies found. Cloning fresh repo
1:18:53 PM: git clone https://github.com/BlackCode7/projeto_java_springboot_react
1:18:53 PM: Preparing Git Reference refs/heads/master
1:18:54 PM: Parsing package.json dependencies
1:18:55 PM: Starting build script
1:18:55 PM: Installing dependencies
1:18:55 PM: Python version set to 2.7
1:18:56 PM: v12.18.0 is already installed.
1:18:57 PM: Now using node v12.18.0 (npm v6.14.4)
1:18:57 PM: Started restoring cached build plugins
1:18:57 PM: Finished restoring cached build plugins
1:18:57 PM: Attempting ruby version 2.7.1, read from environment
1:18:58 PM: Using ruby version 2.7.1
1:18:58 PM: Using PHP version 5.6
1:18:58 PM: Started restoring cached go cache
1:18:58 PM: Finished restoring cached go cache
1:18:58 PM: go version go1.14.4 linux/amd64
1:18:58 PM: go version go1.14.4 linux/amd64
1:18:58 PM: Installing missing commands
1:18:58 PM: Verify run directory
1:19:00 PM: ​
1:19:00 PM: ────────────────────────────────────────────────────────────────
1:19:00 PM: Netlify Build
1:19:00 PM: ────────────────────────────────────────────────────────────────
1:19:00 PM: ​
1:19:00 PM: ❯ Version
1:19:00 PM: @netlify/build 11.17.0
1:19:00 PM: ​
1:19:00 PM: ❯ Flags
1:19:00 PM: deployId: 60a145ea93a115dfe5db2ae2
1:19:00 PM: ​
1:19:00 PM: ❯ Current directory
1:19:00 PM: /opt/build/repo
1:19:00 PM: ​
1:19:00 PM: ❯ Config file
1:19:00 PM: No config file was defined: using default values.
1:19:00 PM: ​
1:19:00 PM: ❯ Context
1:19:00 PM: production
1:19:00 PM: ​
1:19:00 PM: ────────────────────────────────────────────────────────────────
1:19:00 PM: 1. Build command from Netlify app
1:19:00 PM: ────────────────────────────────────────────────────────────────
1:19:00 PM: ​
1:19:00 PM: $ yarn build
1:19:00 PM: bash: yarn: command not found
1:19:00 PM: ​
1:19:00 PM: ────────────────────────────────────────────────────────────────
1:19:00 PM: "build.command" failed
1:19:00 PM: ────────────────────────────────────────────────────────────────
1:19:00 PM: ​
1:19:00 PM: Error message
1:19:00 PM: Command failed with exit code 127: yarn build
1:19:00 PM: ​
1:19:00 PM: Error location
1:19:00 PM: In Build command from Netlify app:
1:19:00 PM: yarn build
1:19:00 PM: ​
1:19:00 PM: Resolved config
1:19:00 PM: build:
1:19:00 PM: command: yarn build
1:19:00 PM: commandOrigin: ui
1:19:00 PM: publish: /opt/build/repo/build
1:19:01 PM: Caching artifacts
1:19:01 PM: Started saving build plugins
1:19:01 PM: Finished saving build plugins
1:19:01 PM: Started saving pip cache
1:19:01 PM: Finished saving pip cache
1:19:01 PM: Started saving emacs cask dependencies
1:19:01 PM: Finished saving emacs cask dependencies
1:19:01 PM: Started saving maven dependencies
1:19:01 PM: Finished saving maven dependencies
1:19:01 PM: Started saving boot dependencies
1:19:01 PM: Finished saving boot dependencies
1:19:01 PM: Started saving rust rustup cache
1:19:01 PM: Finished saving rust rustup cache
1:19:01 PM: Started saving go dependencies
1:19:01 PM: Finished saving go dependencies
1:19:04 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:19:04 PM: Creating deploy upload records
1:19:04 PM: Failing build: Failed to build site
1:19:04 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
1:19:04 PM: Finished processing build request in 12.123774036s

@rmarinheiro
Copy link

rmarinheiro commented May 17, 2021

Boa Noite

Dá uma olhada se você configurou certinho lá no netlifly o build comand usando o yarn, pelo que parece ele não tá conseguindo dar build no seu projeto.

@BlackCode7
Copy link
Author

BlackCode7 commented May 18, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants