My application builds and deploys successfully until last night. It keeps given me Error code: BuildJobExitNonZero.
Below is the logs:
2021-06-17T09:43:24.860863681Z => Initializing build
2021-06-17T09:43:24.888263504Z => Retrieving source code to /workspace
2021-06-17T09:43:24.912148171Z => Selecting branch "test"
2021-06-17T09:43:26.113641765Z => Checking out commit "1d522595ddfb6911a45a3a08f9dc290928bf0236"
2021-06-17T09:43:26.946337717Z
2021-06-17T09:43:26.946466830Z => Building app using buildpacks
2021-06-17T09:43:27.118817245Z => Configuring custom build command to be run at the end of the build:
2021-06-17T09:43:27.137620666Z npm run vue
2021-06-17T09:43:27.137640561Z npm run build:prod
2021-06-17T09:43:27.137644515Z npm run build
2021-06-17T09:43:27.460667536Z => Running buildpack detection
2021-06-17T09:43:27.460694487Z
2021-06-17T09:43:28.091126080Z heroku/nodejs-engine 0.5.0
2021-06-17T09:43:28.091276302Z digitalocean/node 0.3.3
2021-06-17T09:43:28.091381477Z digitalocean/procfile 0.0.3
2021-06-17T09:43:28.091456154Z digitalocean/custom 0.1.0
2021-06-17T09:43:28.163786918Z
2021-06-17T09:43:28.163812724Z For documentation on the buildpacks used to build your app, please see:
2021-06-17T09:43:28.163819124Z Node.js: https://do.co/apps-buildpack-node
2021-06-17T09:43:28.446472677Z
2021-06-17T09:43:28.446729134Z => Checking for cache from a previous build
2021-06-17T09:43:30.303231062Z Previous image with name <registry-uri-0> not found
2021-06-17T09:43:31.209086532Z Layer cache not found
2021-06-17T09:43:34.381732914Z Layer cache not found
2021-06-17T09:43:35.119757350Z
2021-06-17T09:43:35.119812281Z => Building app
2021-06-17T09:43:35.119846867Z
2021-06-17T09:43:35.270262982Z ---> Node.js Buildpack
2021-06-17T09:43:35.279263450Z ---> Installing toolbox
2021-06-17T09:43:35.290130301Z ---> - jq
2021-06-17T09:43:35.726866090Z ---> - yj
2021-06-17T09:43:36.021735037Z ---> Getting Node version
2021-06-17T09:43:36.044509686Z ---> Resolving Node version
2021-06-17T09:43:36.522529057Z ---> Downloading and extracting Node v12.22.1
2021-06-17T09:43:39.161709140Z ---> Parsing package.json
2021-06-17T09:43:39.565061962Z ---> No file to start server
2021-06-17T09:43:39.565097084Z ---> either use 'docker run' to start container or add index.js or server.js
2021-06-17T09:43:39.964405762Z Using npm v6.14.12. To configure a different version of npm, set the engines.npm property in package.json.
2021-06-17T09:43:39.964442156Z See https://do.co/apps-buildpack-node for further instructions.
2021-06-17T09:43:39.964448187Z Installing node_modules using npm (from package-lock.json)
2021-06-17T09:43:40.321403861Z Running npm ci
2021-06-17T09:43:40.321443502Z
2021-06-17T09:44:04.906430871Z
2021-06-17T09:44:04.906481098Z > fsevents@1.2.13 install /workspace/node_modules/watchpack-chokidar2/node_modules/fsevents
2021-06-17T09:44:04.906492086Z > node install.js
2021-06-17T09:44:04.906498545Z
2021-06-17T09:44:05.077179117Z
2021-06-17T09:44:05.077899261Z Skipping 'fsevents' build as platform linux is not supported
2021-06-17T09:44:05.699955125Z
2021-06-17T09:44:05.699987647Z > core-js@3.14.0 postinstall /workspace/node_modules/core-js
2021-06-17T09:44:05.699995034Z > node -e "try{require('./postinstall')}catch(e){}"
2021-06-17T09:44:05.700002225Z
2021-06-17T09:44:05.884178794Z [96mThank you for using core-js ([94m https://github.com/zloirock/core-js [96m) for polyfilling JavaScript standard library![0m
2021-06-17T09:44:05.884210109Z
2021-06-17T09:44:05.884216011Z [96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: [0m
2021-06-17T09:44:05.884222857Z [96m>[94m https://opencollective.com/core-js [0m
2021-06-17T09:44:05.884241857Z [96m>[94m https://www.patreon.com/zloirock [0m
2021-06-17T09:44:05.884244427Z
2021-06-17T09:44:05.884247419Z [96mAlso, the author of core-js ([94m https://github.com/zloirock [96m) is looking for a good job -)[0m
2021-06-17T09:44:05.884251157Z
2021-06-17T09:44:06.278480302Z
2021-06-17T09:44:06.278519071Z > swiper@6.7.0 postinstall /workspace/node_modules/swiper
2021-06-17T09:44:06.278526928Z > node -e "try{require('./postinstall')}catch(e){}"
2021-06-17T09:44:06.278532023Z
2021-06-17T09:44:06.482066502Z [35m[1mLove Swiper? Support Vladimir's work by donating or pledging: [0m
2021-06-17T09:44:06.482107448Z [22m[39m[32m> On Patreon https://patreon.com/vladimirkharlampidi [0m
2021-06-17T09:44:06.482115485Z [22m[39m[32m> On Open Collective https://opencollective.com/swiper
2021-06-17T09:44:07.379262005Z
2021-06-17T09:44:07.379291769Z > fsevents@1.2.13 install /workspace/node_modules/webpack-dev-server/node_modules/fsevents
2021-06-17T09:44:07.379298569Z > node install.js
2021-06-17T09:44:07.379302188Z
2021-06-17T09:44:07.541475365Z
2021-06-17T09:44:07.541863901Z Skipping 'fsevents' build as platform linux is not supported
2021-06-17T09:44:07.624247429Z
2021-06-17T09:44:07.624275761Z > ejs@2.7.4 postinstall /workspace/node_modules/ejs
2021-06-17T09:44:07.624281075Z > node ./postinstall.js
2021-06-17T09:44:07.624284382Z
2021-06-17T09:44:07.789327438Z Thank you for installing [35mEJS[0m: built with the [32mJake[0m JavaScript build tool ([32mhttps://jakejs.com/[0m)
2021-06-17T09:44:07.789358986Z
2021-06-17T09:44:08.224644861Z
2021-06-17T09:44:08.224686743Z > core-js@2.6.12 postinstall /workspace/node_modules/babel-runtime/node_modules/core-js
2021-06-17T09:44:08.224695132Z > node -e "try{require('./postinstall')}catch(e){}"
2021-06-17T09:44:08.224699720Z
2021-06-17T09:44:08.526680646Z
2021-06-17T09:44:08.526723924Z > yorkie@2.0.0 install /workspace/node_modules/yorkie
2021-06-17T09:44:08.526732805Z > node bin/install.js
2021-06-17T09:44:08.526737896Z
2021-06-17T09:44:08.713513403Z setting up Git hooks
2021-06-17T09:44:08.724436459Z done
2021-06-17T09:44:08.724460544Z
2021-06-17T09:44:08.780132802Z added 2025 packages in 27.541s
2021-06-17T09:44:08.832750495Z
2021-06-17T09:44:18.553142470Z Running custom build command: npm run vue
2021-06-17T09:44:18.553188872Z npm run build:prod
2021-06-17T09:44:18.553196345Z npm run build
2021-06-17T09:44:19.093458809Z npm ERR! missing script: vue
2021-06-17T09:44:19.099719743Z
2021-06-17T09:44:19.100180103Z npm ERR! A complete log of this run can be found in:
2021-06-17T09:44:19.100322683Z npm ERR! /home/apps/.npm/_logs/2021-06-17T09_44_19_093Z-debug.log
2021-06-17T09:44:19.598548253Z npm ERR! missing script: build:prod
2021-06-17T09:44:19.599156513Z npm ERR!
2021-06-17T09:44:19.599587035Z npm ERR! Did you mean this?
2021-06-17T09:44:19.600345267Z npm ERR! build
2021-06-17T09:44:19.610862994Z
2021-06-17T09:44:19.611558745Z npm ERR! A complete log of this run can be found in:
2021-06-17T09:44:19.612294678Z npm ERR! /home/apps/.npm/_logs/2021-06-17T09_44_19_600Z-debug.log
2021-06-17T09:44:20.060625586Z
2021-06-17T09:44:20.060657424Z > juasoonline@0.1.0 build /workspace
2021-06-17T09:44:20.060661826Z > vue-cli-service build
2021-06-17T09:44:20.060666427Z
2021-06-17T09:44:21.098339028Z
2021-06-17T09:44:21.099294525Z - Building for production...
2021-06-17T09:44:48.725516132Z ERROR Failed to compile with 1 error9:44:48 AM
2021-06-17T09:44:48.725554954Z
2021-06-17T09:44:48.726286265Z error in ./public/assets/css/tailwind.css
2021-06-17T09:44:48.726765493Z
2021-06-17T09:44:48.726777908Z Error: PostCSS plugin postcss-purgecss requires PostCSS 8.
2021-06-17T09:44:48.726784700Z Migration guide for end-users:
2021-06-17T09:44:48.726790387Z https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users
2021-06-17T09:44:48.726794620Z at new Promise (<anonymous>)
2021-06-17T09:44:48.726798377Z
2021-06-17T09:44:48.726802052Z
2021-06-17T09:44:48.726805940Z @ ./src/main.js 7:0-43
2021-06-17T09:44:48.726810544Z @ multi ./src/main.js
2021-06-17T09:44:48.727426635Z
2021-06-17T09:44:48.728681763Z ERROR Build failed with errors.
2021-06-17T09:44:48.754682243Z npm ERR! code ELIFECYCLE
2021-06-17T09:44:48.755125975Z npm ERR! errno 1
2021-06-17T09:44:48.758314095Z npm ERR! juasoonline@0.1.0 build: `vue-cli-service build`
2021-06-17T09:44:48.758733289Z npm ERR! Exit status 1
2021-06-17T09:44:48.759084576Z npm ERR!
2021-06-17T09:44:48.759491439Z npm ERR! Failed at the juasoonline@0.1.0 build script.
2021-06-17T09:44:48.759794662Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-06-17T09:44:48.769774457Z
2021-06-17T09:44:48.769846087Z npm ERR! A complete log of this run can be found in:
2021-06-17T09:44:48.770147933Z npm ERR! /home/apps/.npm/_logs/2021-06-17T09_44_48_760Z-debug.log
2021-06-17T09:44:48.785492500Z building: exit status 1
2021-06-17T09:44:48.790948612Z [31;1mERROR: [0mfailed to build: exit status 1
2021-06-17T09:44:58.885715634Z
2021-06-17T09:44:58.885868251Z For documentation on the buildpacks used to build your app, please see:
2021-06-17T09:44:58.885994911Z Node.js: https://do.co/apps-buildpack-node
2021-06-17T09:44:58.888464205Z
2021-06-17T09:44:58.889150474Z [31m ! Build failed (145)[0m
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
It looks like that it is failing mainly because of this error here:
npm ERR! missing script: vue
Can you share your package.json file here?
I could suggest tiring to use vue-cli-service for your build instead.
You can take a look at this sample Vue.js project here as an example:
https://github.com/digitalocean/sample-vuejs
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.