Question
NPM gets killed no matter what.
I have a droplet with Ubuntu 12.04 where i have installed node and npm. But no matter what i try, npm works a little and the gets “killed”. It happens if i try “npm update” or “npm install”.
Anyone know what causes this and if there is a solution?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
I am having this issue too. MEAN.JS droplet. 512 MB.
Did you have any success with resolving this issue? I am running into the same problem.
Hey, yes i did, take a look at my answer below.
I had to increase my memory (swap).
Same here, doing a “flexible increase” in droplet size from 512 MB to 1 GB fixed this for me. Working with keystone.js / node / express.
Had the same issue, upgrading to 1GB of memory and reinstalling node modules a bunch of times worked.
Cheapest solution is to create a swap file, it only takes 5 minutes and you don’t need to pay anything extra.
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
If you however need speed, you should increase the droplet.
Thanks! This works.
Above article really works.