New to to netlify. My deploys are failing

Briefly summarize the issues you have been experiencing.
I am trying to deploy a vue.js project but my builds are failing. Here is the log

2:09:38 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
2:09:38 PM: build-image tag: v3.3.2
2:09:38 PM: buildbot version: 75cd99f62ada9e21edea53208e8baf0eab85a045
2:09:38 PM: Fetching cached dependencies
2:09:39 PM: Failed to fetch cache, continuing with build
2:09:39 PM: Starting to prepare the repo for build
2:09:39 PM: No cached dependencies found. Cloning fresh repo
2:09:39 PM: git clone https://github.com/patcodefy/iread
2:09:40 PM: Preparing Git Reference refs/heads/master
2:09:40 PM: Starting build script
2:09:40 PM: Installing dependencies
2:09:42 PM: v10.15.3 is already installed.
2:09:42 PM: Now using node v10.15.3 (npm v6.4.1)
2:09:43 PM: Attempting ruby version 2.6.2, read from environment
2:09:44 PM: Using ruby version 2.6.2
2:09:44 PM: Using PHP version 5.6
2:09:44 PM: Started restoring cached node modules
2:09:44 PM: Finished restoring cached node modules
2:09:45 PM: Installing NPM modules using NPM version 6.4.1
2:09:57 PM: > core-js@2.6.8 postinstall /opt/build/repo/node_modules/core-js
2:09:57 PM: > node -e "try { require('./scripts/postinstall'); } catch (e) { /* empty */ }"
2:09:57 PM: Thank you for using core-js ( https://github.com/zloirock/core-js )!
2:09:57 PM: Please consider supporting of core-js on Open Collective or Patreon: 
2:09:57 PM: > https://opencollective.com/core-js 
2:09:57 PM: > https://www.patreon.com/zloirock 
2:09:57 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
2:09:57 PM: > webpack-cli@3.3.2 postinstall /opt/build/repo/node_modules/webpack-cli
2:09:57 PM: > node ./bin/opencollective.js
2:09:57 PM:                             Thanks for using Webpack!
2:09:57 PM:                  Please consider donating to our Open Collective
2:09:57 PM:                         to help us maintain this package.
2:09:57 PM:                  Donate: https://opencollective.com/webpack/donate
2:09:57 PM: npm
2:09:57 PM:  WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
2:09:57 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2:09:57 PM: added 677 packages from 366 contributors and audited 11583 packages in 11.949s
2:09:57 PM: found 0 vulnerabilities
2:09:58 PM: NPM modules installed
2:09:58 PM: Started restoring cached go cache
2:09:58 PM: Finished restoring cached go cache
2:09:58 PM: unset GOOS;
2:09:58 PM: unset GOARCH;
2:09:58 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
2:09:58 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
2:09:58 PM: go version >&2;
2:09:58 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
2:09:58 PM: go version go1.12 linux/amd64
2:09:58 PM: Installing missing commands
2:09:58 PM: Verify run directory
2:09:58 PM: Executing user command: npm run serve
2:09:58 PM: > iread@1.0.0 serve /opt/build/repo
2:09:58 PM: > cross-env webpack --progress --hide-modules
2:09:59 PM:   0% compiling
2:09:59 PM:  10% building 0/0 modules 0 active
2:09:59 PM:  10% building 0/1 modules 1 active ...ib/index.js!/opt/build/repo/src/main.js
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  
2:10:00 PM:  10% building 1/1 modules 0 active
2:10:00 PM:  10% building 1/2 modules 1 active ...x.js!/opt/build/repo/src/store/store.js
2:10:00 PM:  10% building 1/3 modules 2 active ...d/repo/node_modules/vue/dist/vue.esm.js
2:10:00 PM:  10% building 2/3 modules 1 active ...d/repo/node_modules/vue/dist/vue.esm.js
2:10:00 PM:  10% building 2/4 modules 2 active ...der-options!/opt/build/repo/src/App.vue
2:10:00 PM:  10% building 3/4 modules 1 active ...d/repo/node_modules/vue/dist/vue.esm.js
2:10:00 PM:  10% building 3/5 modules 2 active ...ader/lib/runtime/componentNormalizer.js
2:10:00 PM:  10% building 3/6 modules 3 active .../App.vue?vue&type=template&id=7ba5bd90&
2:10:00 PM:  10% building 4/6 modules 2 active ...ader/lib/runtime/componentNormalizer.js
2:10:00 PM:  10% building 4/7 modules 3 active ...po/src/App.vue?vue&type=script&lang=js&
2:10:00 PM:  10% building 5/7 modules 2 active ...ader/lib/runtime/componentNormalizer.js
2:10:00 PM:  10% building 5/8 modules 3 active ...po/src/App.vue?vue&type=script&lang=js&
2:10:00 PM:  10% building 6/8 modules 2 active ...ader/lib/runtime/componentNormalizer.js
2:10:00 PM:  10% building 6/9 modules 3 active .../App.vue?vue&type=template&id=7ba5bd90&
2:10:00 PM:  10% building 7/9 modules 2 active ...ader/lib/runtime/componentNormalizer.js
2:10:00 PM:  10% building 8/9 modules 1 active ...d/repo/node_modules/vue/dist/vue.esm.js
2:10:00 PM:  10% building 8/10 modules 2 active ...repo/node_modules/vuex/dist/vuex.esm.js
2:10:00 PM:  11% building 9/10 modules 1 active ...d/repo/node_modules/vue/dist/vue.esm.js
2:10:00 PM:  11% building 9/11 modules 2 active .../node_modules/webpack/buildin/global.js
2:10:01 PM:  11% building 10/11 modules 1 active .../node_modules/webpack/buildin/global.js
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  11% building 11/11 modules 0 active
2:10:01 PM:  11% building 11/12 modules 1 active .../node_modules/timers-browserify/main.js
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  11% building 12/12 modules 0 active
2:10:01 PM:  11% building 12/13 modules 1 active ...de_modules/setimmediate/setImmediate.js
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  11% building 13/13 modules 0 active
2:10:01 PM:  11% building 13/14 modules 1 active ...ld/repo/node_modules/process/browser.js
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:01 PM:  
2:10:04 PM: failed during stage 'building site': Build script returned non-zero exit code: 2
2:10:01 PM:  11% building 14/14 modules 0 active
2:10:01 PM:  70% building 14/14 modules 0 active
2:10:01 PM:  
2:10:04 PM: Shutting down logging, 611 messages pending

I don’t have any live site since my builds are failing

I tried changing my build command from build to serve because it was recommended in build gotcha docs. I also removed NODE_ENV=production as suggested. Thanks for your help.
Here is my github repo: https://github.com/patcodefy/iread

Sorry to hear your build is failing. That’s always a bummer :frowning:
Any chance you could post a link to a GitHub repository? Or something like that.

It might be easier to debug if I/we can see what’s happening.

1 Like

Also is the webpack build failing, or at least that is what it looks like is happening :thinking::thinking:

I ended up having it working. I used the CLI and was able to deploy.

I ended up using netlify CLI and was able to deploy. For some reasons, it doesn’t work with github.

Here is my github repo: https://github.com/patcodefy/iread
It is working with the netlify CLI but it is not working when I connect to github