Skip to content

Building takes forever and fails with 95% emittingnpm ERR! code ELIFECYCLE #26

@stefanwouldgo

Description

@stefanwouldgo

First of all I'm not a 100% sure how to start a production build, couldn't find docs to that effect. But after looking at the package.json, I tried 'npm run build' and it runs for a really long time, fetching stuff, and elm making three times (about 20 minutes I guess), and then it fails:

`stefan@xpsgiraffeguix ~/elm-pages-starter$ npm run build

elm-pages-example@1.0.0 build /home/stefan/elm-pages-starter
elm-pages build

Dependencies ready!
Success! Compiled 12 modules.

Main ───> /tmp/2021020-11200-2q3n7y.8hgjb.js

Fetching https://cbeci.org/api/csv
Fetching https://api.blockchain.info/charts/total-bitcoins?timespan=100years&format=csv&cors=true
Dependencies ready!
Success! Compiled 12 modules.

Main ───> /tmp/2021020-11200-i1flf6.f11pa.js

Dependencies ready!
Success! Compiled 12 modules.

Main ───> /tmp/2021020-11200-1lz326e.bz0kf.js

95% emittingnpm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! elm-pages-example@1.0.0 build: elm-pages build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the elm-pages-example@1.0.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! /home/stefan/.npm/_logs/2021-01-20T04_04_01_987Z-debug.log`

In develop mode, every reload took forever and the page is extremely slow on this project since I started including StaticHttp Requests. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions