Skip to content

Build doesn't work on an Ubuntu server #1133

Closed
@vidarc

Description

@vidarc

If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.

Can you reproduce the problem with latest npm?

Many errors, especially related to "missing modules", are due to npm bugs.

If you're using Windows, follow these instructions to update npm.

If you're using OS X or Linux, run this to update npm:

npm install -g npm@latest

cd your_project_directory
rm -rf node_modules
npm install

Then try to reproduce the issue again.

Can you still reproduce it?

Yes. I have tried installing and re-installing multiple times, using both npm and yarn to install the modules and to run the scripts.

Description

What are you reporting?

The build script runs, but it stops at some point. The build folder gets created and the favicon gets moved over to it, but nothing else appears to happen. The process takes about 13-15secs, while running build on my Macbook correctly builds and takes about 70secs.

Doing either yarn start or npm start works for the dev server.

Expected behavior

Tell us what you think should happen.

Actual behavior

Tell us what actually happens.

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected): [email protected]
  2. node -v: v.7.2.0
  3. npm -v: 4.0.2

Then, specify:

  1. Operating system: Ubuntu 16.04
  2. Browser and version:

Reproducible Demo

Please take the time to create a new app that reproduces the issue.

Alternatively, you could copy your app that experiences the problem and start removing things until you’re left with the minimal reproducible demo.

(Accidentally, you might get to the root of your problem during that process.)

Push to GitHub and paste the link here.

By doing this, you're helping the Create React App contributors a big time!
Demonstrable issues gets fixed faster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions