Closed rajivpai06 closed 5 years ago
It turns out that the system was running out of memory and the kernel was killing ng serve
.
The solution is to run ng build --prod
on your local system (with more RAM) then deploy the dist
folder to the production system with limited resources.
This is obvious in hindsight since one should not deploy a development project to a live server.
Can you give me a webpackconfig for angular7 for this projetc
Issue type
I'm submitting a ... (check one with "x")
Issue description
I am trying to deploy an ngx-admin app on an Ubuntu 16.04 server but the application is not compiling.
Current behavior:
package-lock.json
from my local installation which is working without any problem.npm ci
to install packages.npm start
to run the application but instead I get the error below.When I run with
ng serve
, compilation doesn't complete and I get the output below.Expected behavior:
I expect the application to be compiled and run successfully.
Versions
Angular CLI: 7.0.5 Node: 10.15.1 OS: Ubuntu 16.04.5 LTS Angular: 7.0.3 Typescript: 3.1.3 Webpack: 4.29.0
Steps to reproduce:
This is a huge application now and I'm unable to provide a sample repository to run the application. But here are the steps that are followed from server setup to application startup:
npm config set prefix "~/.local/"
npm install -g @angular/cli@7.0.5
.git clone [remote-url]
npm ci
to install project dependenciesnpm audit fix
to fix whatever vulnerabilities it cannpm start
to run the application - which fails.Related code:
Not related code but here is a copy of a log generated by
npm
.Other information:
npm, node, OS, Browser
OS: Ubuntu 16.04.5 LTS Node: v10.15.1 Npm: 6.7.0
Angular, Nebular
Angular: 7.0.3 Nebular: 3.0.0