Replies: 5 comments 4 replies
-
my netlify.toml [build] [build.environment] [build.processing] [[headers]] [[headers]] [[headers]] |
Beta Was this translation helpful? Give feedback.
-
Hey @cmittal791, it seems the webpack build is failing on Netlify. Are you able to run |
Beta Was this translation helpful? Give feedback.
-
my package.json { |
Beta Was this translation helpful? Give feedback.
-
I have resolved the issue.
Best. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the support.
…On Tue, 11 May 2021, 18:25 Ayush Newatia, ***@***.***> wrote:
That's great! I'm not sure why my build passed without
NPM_CONFIG_PRODUCTION=false 🤔
I'll update the netlify.sh file to be executable by default. Thanks! :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#299 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATMU4MVQZRNDKW4CEUHZR5LTNESNHANCNFSM44VCLGOA>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi, I am getting this error while deploying to Netlify.
Steps:-
4:04:18 PM: Build ready to start
4:04:20 PM: build-image version: 0582042f4fc261adc7bd8333f34884959c577302
4:04:20 PM: build-image tag: v3.7.6
4:04:20 PM: buildbot version: b202e9eba5b6cc783678acec06610ee45927f6c6
4:04:20 PM: Fetching cached dependencies
4:04:20 PM: Failed to fetch cache, continuing with build
4:04:20 PM: Starting to prepare the repo for build
4:04:21 PM: No cached dependencies found. Cloning fresh repo
4:04:21 PM: git clone https://github.com/cmittal791/multiinternetbrands.in
4:04:22 PM: Preparing Git Reference refs/heads/main
4:04:22 PM: Parsing package.json dependencies
4:04:23 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'output' versus 'output/' in the Netlify UI
4:04:23 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'yarn deploy && ./bin/netlify.sh' versus 'yarn deploy' in the Netlify UI
4:04:23 PM: Starting build script
4:04:23 PM: Installing dependencies
4:04:23 PM: Python version set to 2.7
4:04:25 PM: v12.18.0 is already installed.
4:04:25 PM: Now using node v12.18.0 (npm v6.14.4)
4:04:25 PM: Started restoring cached build plugins
4:04:25 PM: Finished restoring cached build plugins
4:04:25 PM: Attempting ruby version 2.7.1, read from environment
4:04:27 PM: Using ruby version 2.7.1
4:04:27 PM: Using bundler version 2.2.16 from Gemfile.lock
4:04:28 PM: Successfully installed bundler-2.2.16
4:04:28 PM: 1 gem installed
4:04:28 PM: Using PHP version 5.6
4:04:28 PM: Started restoring cached ruby gems
4:04:28 PM: Finished restoring cached ruby gems
4:04:28 PM: Installing gem bundle
4:04:28 PM: [DEPRECATED] The
--path
flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please usebundle config set --local path '/opt/build/cache/bundle'
, and stop using this flag4:04:28 PM: [DEPRECATED] The --binstubs option will be removed in favor of
bundle binstubs --all
4:04:31 PM: Fetching gem metadata from https://rubygems.org/...........
4:04:31 PM: Resolving dependencies...
4:04:31 PM: Fetching minitest 5.14.4
4:04:31 PM: Fetching zeitwerk 2.4.2
4:04:31 PM: Fetching erubi 1.10.0
4:04:31 PM: Fetching concurrent-ruby 1.1.8
4:04:31 PM: Fetching amazing_print 1.3.0
4:04:31 PM: Fetching colorator 1.1.0
4:04:31 PM: Fetching public_suffix 4.0.6
4:04:31 PM: Fetching faraday-excon 1.1.0
4:04:31 PM: Installing faraday-excon 1.1.0
4:04:31 PM: Installing erubi 1.10.0
4:04:31 PM: Installing zeitwerk 2.4.2
4:04:31 PM: Installing colorator 1.1.0
4:04:31 PM: Installing amazing_print 1.3.0
4:04:31 PM: Installing public_suffix 4.0.6
4:04:31 PM: Installing minitest 5.14.4
4:04:31 PM: Installing concurrent-ruby 1.1.8
4:04:32 PM: Fetching faraday-net_http 1.0.1
4:04:32 PM: Fetching faraday-net_http_persistent 1.1.0
4:04:32 PM: Fetching multipart-post 2.1.1
4:04:32 PM: Fetching ruby2_keywords 0.0.4
4:04:32 PM: Installing faraday-net_http 1.0.1
4:04:32 PM: Fetching rexml 3.2.5
4:04:32 PM: Fetching liquid 5.0.1
4:04:32 PM: Installing ruby2_keywords 0.0.4
4:04:32 PM: Installing multipart-post 2.1.1
4:04:32 PM: Installing faraday-net_http_persistent 1.1.0
4:04:32 PM: Fetching safe_yaml 1.0.5
4:04:32 PM: Installing liquid 5.0.1
4:04:32 PM: Installing rexml 3.2.5
4:04:32 PM: Fetching rb-fsevent 0.11.0
4:04:32 PM: Installing safe_yaml 1.0.5
4:04:32 PM: Fetching rouge 3.26.0
4:04:32 PM: Fetching ffi 1.15.0
4:04:32 PM: Fetching unicode-display_width 1.7.0
4:04:32 PM: Installing rb-fsevent 0.11.0
4:04:32 PM: Installing unicode-display_width 1.7.0
4:04:32 PM: Installing rouge 3.26.0
4:04:32 PM: Fetching thor 1.1.0
4:04:33 PM: Fetching tilt 2.0.10
4:04:33 PM: Fetching webrick 1.7.0
4:04:33 PM: Installing thor 1.1.0
4:04:33 PM: Using bundler 2.2.16
4:04:33 PM: Fetching addressable 2.7.0
4:04:33 PM: Installing ffi 1.15.0 with native extensions
4:04:33 PM: Fetching faraday 1.4.1
4:04:33 PM: Installing tilt 2.0.10
4:04:33 PM: Fetching terminal-table 1.8.0
4:04:33 PM: Installing webrick 1.7.0
4:04:33 PM: Installing addressable 2.7.0
4:04:33 PM: Installing faraday 1.4.1
4:04:33 PM: Installing terminal-table 1.8.0
4:04:33 PM: Fetching kramdown 2.3.1
4:04:33 PM: Fetching i18n 1.8.10
4:04:33 PM: Fetching tzinfo 2.0.4
4:04:33 PM: Installing kramdown 2.3.1
4:04:33 PM: Installing i18n 1.8.10
4:04:33 PM: Installing tzinfo 2.0.4
4:04:34 PM: Fetching faraday_middleware 1.0.0
4:04:34 PM: Installing faraday_middleware 1.0.0
4:04:34 PM: Fetching activesupport 6.1.3.2
4:04:34 PM: Installing activesupport 6.1.3.2
4:04:43 PM: Fetching activemodel 6.1.3.2
4:04:43 PM: Fetching hash_with_dot_access 1.1.0
4:04:43 PM: Fetching liquid-component 0.1.0
4:04:43 PM: Fetching kramdown-parser-gfm 1.1.0
4:04:43 PM: Fetching rb-inotify 0.10.1
4:04:43 PM: Installing kramdown-parser-gfm 1.1.0
4:04:43 PM: Installing hash_with_dot_access 1.1.0
4:04:43 PM: Installing liquid-component 0.1.0
4:04:43 PM: Installing activemodel 6.1.3.2
4:04:43 PM: Installing rb-inotify 0.10.1
4:04:43 PM: Fetching listen 3.5.1
4:04:43 PM: Installing listen 3.5.1
4:04:43 PM: Fetching bridgetown-core 0.20.0
4:04:43 PM: Installing bridgetown-core 0.20.0
4:04:43 PM: Fetching bridgetown-paginate 0.20.0
4:04:43 PM: Fetching bridgetown-builder 0.20.0
4:04:43 PM: Installing bridgetown-builder 0.20.0
4:04:43 PM: Installing bridgetown-paginate 0.20.0
4:04:44 PM: Fetching bridgetown 0.20.0
4:04:44 PM: Installing bridgetown 0.20.0
4:04:44 PM: Bundle complete! 1 Gemfile dependency, 41 gems now installed.
4:04:44 PM: Bundled gems are installed into
/opt/build/cache/bundle
4:04:44 PM: Gem bundle installed
4:04:44 PM: Started restoring cached yarn cache
4:04:44 PM: Finished restoring cached yarn cache
4:04:44 PM: Installing yarn at version 1.22.4
4:04:44 PM: Installing Yarn!
4:04:44 PM: > Downloading tarball...
4:04:44 PM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.Mc3UOEsIYx
4:04:44 PM: % Total % Received % Xferd Average Speed Time Time Time Current
4:04:44 PM: Dload Upload Total Spent Left Speed
4:04:44 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
4:04:44 PM: 100 79 100 79 0 0 436 0 --:--:-- --:--:-- --:--:-- 438
4:04:44 PM: 100 93 100 93 0 0 177 0 --:--:-- --:--:-- --:--:-- 177
4:04:45 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
4:04:45 PM: 100 625 100 625 0 0 692 0 --:--:-- --:--:-- --:--:-- 11792
4:04:45 PM: 100 1215k 100 1215k 0 0 935k 0 0:00:01 0:00:01 --:--:-- 935k
4:04:45 PM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.Mc3UOEsIYx.asc
4:04:45 PM: 100 83 100 83 0 0 1456 0 --:--:-- --:--:-- --:--:-- 1456
4:04:45 PM: 100 97 100 97 0 0 1117 0 --:--:-- --:--:-- --:--:-- 1117
4:04:45 PM: 100 629 100 629 0 0 5551 0 --:--:-- --:--:-- --:--:-- 5551
4:04:45 PM: 100 1028 100 1028 0 0 8068 0 --:--:-- --:--:-- --:--:-- 8068
4:04:45 PM: > Verifying integrity...
4:04:45 PM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
4:04:45 PM: gpg: Good signature from "Yarn Packaging [email protected]"
4:04:45 PM: gpg: WARNING: This key is not certified with a trusted signature!
4:04:45 PM: gpg: There is no indication that the signature belongs to the owner.
4:04:45 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
4:04:45 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
4:04:45 PM: > GPG signature looks good
4:04:45 PM: > Extracting to ~/.yarn...
4:04:46 PM: > Adding to $PATH...
4:04:46 PM: > Successfully installed Yarn 1.22.4! Please open another terminal where the
yarn
command will now be available.4:04:46 PM: No yarn workspaces detected
4:04:46 PM: Started restoring cached node modules
4:04:46 PM: Finished restoring cached node modules
4:04:47 PM: Installing NPM modules using Yarn version 1.22.4
4:04:47 PM: yarn install v1.22.4
4:04:47 PM: [1/4] Resolving packages...
4:04:48 PM: [2/4] Fetching packages...
4:05:04 PM: info [email protected]: The platform "linux" is incompatible with this module.
4:05:04 PM: info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
4:05:04 PM: info [email protected]: The platform "linux" is incompatible with this module.
4:05:04 PM: info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
4:05:04 PM: [3/4] Linking dependencies...
4:05:05 PM: [4/4] Building fresh packages...
4:05:05 PM: Done in 17.72s.
4:05:05 PM: NPM modules installed using Yarn
4:05:05 PM: Started restoring cached go cache
4:05:05 PM: Finished restoring cached go cache
4:05:05 PM: go version go1.14.4 linux/amd64
4:05:05 PM: go version go1.14.4 linux/amd64
4:05:05 PM: Installing missing commands
4:05:05 PM: Verify run directory
4:05:07 PM:
4:05:07 PM: ────────────────────────────────────────────────────────────────
4:05:07 PM: Netlify Build
4:05:07 PM: ────────────────────────────────────────────────────────────────
4:05:07 PM:
4:05:07 PM: ❯ Version
4:05:07 PM: @netlify/build 11.12.0
4:05:07 PM:
4:05:07 PM: ❯ Flags
4:05:07 PM: deployId: 609a5daaaa1f7b000722c2a3
4:05:07 PM:
4:05:07 PM: ❯ Current directory
4:05:07 PM: /opt/build/repo
4:05:07 PM:
4:05:07 PM: ❯ Config file
4:05:07 PM: /opt/build/repo/netlify.toml
4:05:07 PM:
4:05:07 PM: ❯ Context
4:05:07 PM: production
4:05:07 PM:
4:05:07 PM: ────────────────────────────────────────────────────────────────
4:05:07 PM: 1. build.command from netlify.toml
4:05:07 PM: ────────────────────────────────────────────────────────────────
4:05:07 PM:
4:05:07 PM: $ yarn deploy && ./bin/netlify.sh
4:05:07 PM: yarn run v1.22.4
4:05:07 PM: $ yarn clean && yarn webpack-build && yarn build
4:05:07 PM: $ bundle exec bridgetown clean
4:05:08 PM: Configuration file: /opt/build/repo/bridgetown.config.yml
4:05:08 PM: Cleaner: Nothing to do for /opt/build/repo/output.
4:05:08 PM: Cleaner: Nothing to do for /opt/build/repo/.bridgetown-metadata.
4:05:08 PM: Cleaner: Nothing to do for /opt/build/repo/.bridgetown-cache.
4:05:08 PM: Cleaner: Nothing to do for /opt/build/repo/.bridgetown-webpack.
4:05:08 PM: $ webpack --mode production
4:05:09 PM: /bin/sh: 1: webpack: not found
4:05:09 PM: error Command failed with exit code 127.
4:05:09 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
4:05:09 PM: error Command failed with exit code 127.
4:05:09 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
4:05:09 PM:
4:05:09 PM: ────────────────────────────────────────────────────────────────
4:05:09 PM: "build.command" failed
4:05:09 PM: ────────────────────────────────────────────────────────────────
4:05:09 PM:
4:05:09 PM: Error message
4:05:09 PM: Command failed with exit code 127: yarn deploy && ./bin/netlify.sh
4:05:09 PM:
4:05:09 PM: Error location
4:05:09 PM: In build.command from netlify.toml:
4:05:09 PM: yarn deploy && ./bin/netlify.sh
4:05:09 PM:
4:05:09 PM: Resolved config
4:05:09 PM: build:
4:05:09 PM: command: yarn deploy && ./bin/netlify.sh
4:05:09 PM: commandOrigin: config
4:05:09 PM: environment:
4:05:09 PM: - NODE_ENV
4:05:09 PM: - BRIDGETOWN_ENV
4:05:09 PM: processing:
4:05:09 PM: css:
4:05:09 PM: bundle: false
4:05:09 PM: minify: true
4:05:09 PM: html:
4:05:09 PM: pretty_urls: true
4:05:09 PM: images:
4:05:09 PM: compress: true
4:05:09 PM: js:
4:05:09 PM: bundle: false
4:05:09 PM: minify: true
4:05:09 PM: skip_processing: false
4:05:09 PM: publish: /opt/build/repo/output
4:05:09 PM: headers:
4:05:09 PM: - for: ''
4:05:09 PM: values:
4:05:09 PM: Cache-Control: public, max-age=604800, s-max-age=604800
4:05:09 PM: Referrer-Policy: no-referrer-when-downgrade
4:05:09 PM: Strict-Transport-Security: max-age=15552000; includeSubDomains
4:05:09 PM: X-Content-Type-Options: nosniff
4:05:09 PM: X-Frame-Options: DENY
4:05:09 PM: X-XSS-Protection: 1; mode=block
4:05:09 PM: - for: /
4:05:09 PM: values:
4:05:09 PM: Link:
4:05:09 PM: - <CSS_PATH>; rel=preload; as=style
4:05:09 PM: - <JS_PATH>; rel=preload; as=script
4:05:09 PM: - https://NETLIFY_IMAGES_CDN_DOMAIN; rel=preconnect
4:05:09 PM: - for: /.(png|jpg|js|css|svg|woff|ttf|eot|ico|woff2)
values:
Cache-Control: public, max-age=31536000, s-max-age=31536000
Caching artifacts
4:05:09 PM: Started saving ruby gems
4:05:09 PM: Finished saving ruby gems
4:05:09 PM: Started saving node modules
4:05:09 PM: Finished saving node modules
4:05:09 PM: Started saving build plugins
4:05:09 PM: Finished saving build plugins
4:05:09 PM: Started saving yarn cache
4:05:09 PM: Finished saving yarn cache
4:05:09 PM: Started saving pip cache
4:05:09 PM: Finished saving pip cache
4:05:09 PM: Started saving emacs cask dependencies
4:05:09 PM: Finished saving emacs cask dependencies
4:05:09 PM: Started saving maven dependencies
4:05:09 PM: Finished saving maven dependencies
4:05:09 PM: Started saving boot dependencies
4:05:09 PM: Finished saving boot dependencies
4:05:09 PM: Started saving rust rustup cache
4:05:09 PM: Finished saving rust rustup cache
4:05:09 PM: Started saving go dependencies
4:05:09 PM: Finished saving go dependencies
4:05:12 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:05:12 PM: Creating deploy upload records
4:05:12 PM: Failing build: Failed to build site
4:05:12 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
4:05:12 PM: Finished processing build request in 51.88993777s
Beta Was this translation helpful? Give feedback.
All reactions