npm run build fails to generate bundle
See original GitHub issueIf 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?
Description
Build script is not loading forever in an Ubuntu 14.04 server
Expected behavior
Generate build folder in a limited time
Actual behavior
Script runs for more than 40 minutes then times out only leaving a build folder with favicon.ico
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected): 0.7.0node -v
: v6.8.1npm -v
: 3.10.9
Then, specify:
- Operating system: Ubuntu 14.04
- Browser and version: No browser (just build)
Reproducible Demo
Base create-react-app
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
npm run build > bundle.js not getting created - Stack Overflow
You're setting path to '/' which is relative to your systems file structure. You're likely generating the bundle file in your home directory ......
Read more >start-dev-faster - npm
npm run build. Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build...
Read more >npm run build does not minify bundles #9458 | Support Center
As you can see below, "npm run build" executes correctly with no errors, but the created bundles are identical to the dev versions...
Read more >Npm run build failing on MAC M1 - Questions - n8n community
npm run build failing with below error ERROR Failed to compile with 9 errors I am following this document to get n8n locally...
Read more >The build, bundle and cache commands - npm - w3resource
The npm-bundle command has been removed. Npm removed the command as from v1.0, the reason behind the removal is that the default behavior...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What was happening, in my situation, is that since I was working in a low-memory environment the build script silently failed due to running out of available memory.
2016-11-29 23:48 GMT-05:00 Andy Engle notifications@github.com:
No problem, glad to help 👍
2016-12-01 10:07 GMT-05:00 Andy Engle notifications@github.com: