Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular CLI installation fails on Ubuntu under Vagrant with killed #1192

Closed
manuelfink opened this issue Jun 24, 2016 · 4 comments
Closed

Angular CLI installation fails on Ubuntu under Vagrant with killed #1192

manuelfink opened this issue Jun 24, 2016 · 4 comments

Comments

@manuelfink
Copy link

manuelfink commented Jun 24, 2016

Having problems under osx with angular-cli I just thought trying it with vagrant and ubuntu.

Version

ubuntu-trusty-64
node v6.2.2
npm 3.10.2

Repro steps.

# ---- Vagrantfile ---
Vagrant.configure("2") do |config|
 #Use the Centos 6.5 image from the Vagrant cloud
 config.vm.box = "ubuntu/trusty64"
 config.vm.provider "virtualbox" do |v|
     v.memory = 1024
     v.cpus = 2
 end

 config.vm.provision "shell",
 path: "./vagrant/install-node.sh"

 config.vm.provision "shell",
 path: "./vagrant/install-angular2.sh"

 config.vm.provision "shell",
 path: "./vagrant/run-all.sh",
 run: "always"

 ###### Forward Ports
 config.vm.network "forwarded_port", host: 3000, guest: 3000, auto_correct: true    # Node
 config.vm.network "forwarded_port", guest: 6379, host: 6379, auto_correct: true    # Redis
 config.vm.network "forwarded_port", guest: 27019, host: 27019, auto_correct: true  # MongoDB
 config.vm.network "forwarded_port", host: 3306, guest: 3306, auto_correct: true    # MySQL
 config.vm.network "forwarded_port", host: 4200, guest: 4200, auto_correct: true    # angular server
 config.vm.network "forwarded_port", host: 49152, guest: 49152, auto_correct: true  # angular livereload server
 config.vm.network "forwarded_port", host: 35729, guest: 35729, auto_correct: true  # livereload server default port
end




# --- vagrant/install-node.sh ---
sudo -s
apt-get update
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
apt-get install -y nodejs
apt-get install -y build-essential
# apt-get install -y npm # needed to be seperatly installed with old version
npm install -g npm




# --- vagrant/install-angular2.sh ----
sudo -s
npm install -g angular-cli

log given by the failure

root@vagrant-ubuntu-trusty-64:~# npm install -g angular-cli
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
Killed        .....] - extract:angular-cli: sill doParallel extract 1380

no further error messages are available :(

@manuelfink manuelfink changed the title Angular CLI installation fails on Ubuntu with killed Angular CLI installation fails on Ubuntu und Vagrant with killed Jun 24, 2016
@manuelfink manuelfink changed the title Angular CLI installation fails on Ubuntu und Vagrant with killed Angular CLI installation fails on Ubuntu under Vagrant with killed Jun 24, 2016
@manuelfink
Copy link
Author

Problem is caused by too less memory. Installation needs at least 1GB ram

@trickpattyFH20
Copy link

trickpattyFH20 commented Jul 31, 2016

@manuelfink do you have any advice on how to work with angular-cli deployment on AWS or other cloud instances where memory is limited? I would like to adhere to the structure of src / dist and having the app built from src when deploying to prod.

Is there a simple way to manage this with angular-cli or will I have to go back to a custom build process with something like gulp?

@khaidinh
Copy link

@trickpattyFH20 You can add some swap on your constrained instances. I posted some links on #2630 if you still need it.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants