Skip to content

Instantly share code, notes, and snippets.

@ddehart
Created November 28, 2020 23:44
Show Gist options
  • Save ddehart/9e0ca72a3f20f104e05d70eed6de6c64 to your computer and use it in GitHub Desktop.
Save ddehart/9e0ca72a3f20f104e05d70eed6de6c64 to your computer and use it in GitHub Desktop.
65054965 - Failing build log
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_ENV=production
NODE_MODULES_CACHE=true
NODE_VERBOSE=false
-----> Installing binaries
engines.node (package.json): 12.x
engines.npm (package.json): unspecified (use default)
Resolving node version 12.x...
Downloading and installing node 12.20.0...
Using default npm version: 6.14.8
-----> Restoring cache
Cached directories were not restored due to a change in version of node, npm, yarn or stack
Module installation may take longer for this build
-----> Installing dependencies
Installing node modules (package.json)
up to date in 0.222s
found 0 vulnerabilities
-----> Build
Running build
> frontend@ build /tmp/build_1c81ac13
> cd frontend && npm install && npm run build
> core-js@2.6.12 postinstall /tmp/build_1c81ac13/frontend/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js@3.8.0 postinstall /tmp/build_1c81ac13/frontend/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js-pure@3.6.5 postinstall /tmp/build_1c81ac13/frontend/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
> ejs@2.7.4 postinstall /tmp/build_1c81ac13/frontend/node_modules/ejs
> node ./postinstall.js
added 2109 packages from 753 contributors and audited 2216 packages in 50.275s
120 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
> frontend@0.1.0 build /tmp/build_1c81ac13/frontend
> react-scripts build
Creating an optimized production build...
Failed to compile.
Failed to load plugin 'cypress' declared in 'package.json': Cannot find module 'eslint-plugin-cypress'
Require stack:
- /tmp/build_1c81ac13/frontend/node_modules/react-scripts/config/__placeholder__.js
Referenced from: /tmp/build_1c81ac13/frontend/package.json
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frontend@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.28RuZ/_logs/2020-11-28T21_41_32_719Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frontend@ build: `cd frontend && npm install && npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.28RuZ/_logs/2020-11-28T21_41_32_742Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- A module may be missing from 'dependencies' in package.json
https://devcenter.heroku.com/articles/troubleshooting-node-deploys#ensure-you-aren-t-relying-on-untracked-dependencies
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NPM_CONFIG_PRODUCTION=false
NODE_ENV=production
NODE_MODULES_CACHE=true
NODE_VERBOSE=false
-----> Installing binaries
engines.node (package.json): 12.x
engines.npm (package.json): unspecified (use default)
Resolving node version 12.x...
Downloading and installing node 12.20.0...
Using default npm version: 6.14.8
-----> Restoring cache
Cached directories were not restored due to a change in version of node, npm, yarn or stack
Module installation may take longer for this build
-----> Installing dependencies
Installing node modules (package.json)
up to date in 0.227s
found 0 vulnerabilities
-----> Build
Running build
> frontend@ build /tmp/build_0453cc7d
> cd frontend && npm install && npm run build
> core-js@2.6.12 postinstall /tmp/build_0453cc7d/frontend/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js@3.8.0 postinstall /tmp/build_0453cc7d/frontend/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js-pure@3.6.5 postinstall /tmp/build_0453cc7d/frontend/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
> ejs@2.7.4 postinstall /tmp/build_0453cc7d/frontend/node_modules/ejs
> node ./postinstall.js
> cypress@6.0.0 postinstall /tmp/build_0453cc7d/frontend/node_modules/cypress
> node index.js --exec install
Installing Cypress (version: 6.0.0)
[23:21:59] Downloading Cypress [started]
[23:22:00] Downloading Cypress 0% 0s [title changed]
...
[23:22:03] Downloading Cypress 97% 0s [title changed]
[23:22:04] Downloaded Cypress [title changed]
[23:22:04] Downloaded Cypress [completed]
[23:22:04] Unzipping Cypress [started]
[23:22:04] Unzipping Cypress 0% 0s [title changed]
...
[23:22:17] Unzipping Cypress 100% 0s [title changed]
[23:22:17] Unzipped Cypress [title changed]
[23:22:17] Unzipped Cypress [completed]
[23:22:17] Finishing Installation [started]
[23:22:17] Finished Installation /app/.cache/Cypress/6.0.0 [title changed]
[23:22:17] Finished Installation /app/.cache/Cypress/6.0.0 [completed]
You can now open Cypress by running: node_modules/.bin/cypress open
https://on.cypress.io/installing-cypress
added 2212 packages from 802 contributors and audited 2216 packages in 74.048s
122 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
> frontend@0.1.0 build /tmp/build_0453cc7d/frontend
> react-scripts build
Creating an optimized production build...
Compiled successfully.
File sizes after gzip:
41.2 KB build/static/js/2.6616ceef.chunk.js
770 B build/static/js/runtime-main.6290e5e0.js
577 B build/static/js/main.ee8b46e2.chunk.js
163 B build/static/css/main.22ce9495.chunk.css
The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
You may serve it with a static server:
npm install -g serve
serve -s build
Find out more about deployment here:
https://cra.link/deployment
-----> Caching build
- node_modules (nothing to cache)
-----> Pruning devDependencies
Skipping because NPM_CONFIG_PRODUCTION is 'false'
-----> Build succeeded!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment