Skip to content

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

@manuelfink

Description

@manuelfink

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 :(

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