Hello, I'm having a problem where NPM is killing my vagrant instance. I'm using vagrant to simulate production environment.
It's simulating archlinux with 512mb of ram. To be able to run npm as non-root I had to install it through the source using a PKGBUILD file. It might also be a problem with VirtualBox and vagrant. Since I'm not sure what it could be i'm going to assume that it's npm.
The output is the following:
Downloading files normally...
npm http 200 https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.2.tgz
npm http 200 https://registry.npmjs.org/ctype/-/ctype-0.5.2.tgz
Connection to 127.0.0.1 closed by remote host.
Connection to 127.0.0.1 closed.
Vagrant dies... I have to do 'vagrant up' to restart it.
I have the same issue, dies during downloading the files with the same message.
Using a Debian 7 VirtualBox environment on an Ubuntu 12.04 machine.
I fixed it by using the following workaround:
config.vm.provider "virtualbox" do |v|
v.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
jp, after adding the workaround to my vagrant file I was able to donwload the npm packages. Thanks!
Could you elaborate on how did you come up with this fix?
Take a look at this ticket: https://www.virtualbox.org/ticket/11649
Looking at this issue, this doesn't actually look like a problem with npm, but rather with it doing things in a way that cause(d?) Vagrant to go off to the moon. As such, I'm closing this ticket as more or less as resolved as the npm team can get it. Sorry it took so long for this issue to get somebody's attention!