Я пытаюсь запустить проект angular 2 на Ubuntu.
Я установил nodejs: sudo apt-get install nodejs
Установлен угловой: sudo npm install -g @angular/cli
и когда я запускаю свой проект через sudo npm install и npm run start
Я получаю это обратно:
$sudo npm install npm WARN [email protected] requires a
peer of css-star-rating@^1.2.4 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/core@^2.0.0||^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/http@^2.0.0||^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/core@>=2.0.0 <5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/forms@>=2.3.1 <5.0.0 but none is installed. You must install peer dependencies yourself.
up to date in 11.88s
╭─────────────────────────────────────╮
│ │
│ Update available 5.6.0 → 6.2.0 │
│ Run npm i -g npm to update │
│ │
╰─────────────────────────────────────╯
$ npm run start
> [email protected] start /var/www/html/frontend
> ng serve
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
10% building modules 3/3 modules 0 activeKilled
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! [email protected] start: `ng serve`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Также он просто висит на этом:
10% building modules 3/3 modules 0 active
Что я делаю неправильно? Я запускаю это на виртуальной машине Ubuntu Google Cloud Platform с f1-micro (1 виртуальный ЦП, 0,6 ГБ памяти)
Пожалуйста помоги!
Я пробовал, просто зависает на 10% строительных модулях 3/3 модуля 0 активных
У меня такая же проблема. Еще не исправил, но у меня такое ощущение, что Linux убивает процессы, потому что вам не хватает памяти.
Верно, моя проблема была исправлена с большим объемом памяти





Похоже, вы пытаетесь выполнить развертывание с помощью сервера разработки - не делайте этого, просто обслуживайте созданные файлы.