Hi Team ,
I am trying to install some packages but every time process gets killed . More details are here.
http://stackoverflow.com/questions/39251855/sailsjs-installation-on-digital-ocean-ubuntu-vps
Please help…
Thanks Trivender
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Based on the information you provided, that npm is crashing or killing it’s sub-processes during this install but not at the same point each time the most likely cause is that your droplet is running out of available memory to complete the installation process. This is especially likely if you are running a 512MB droplet.
Droplets do not ship with swap configured by default. This means that if the physical memory available to it is used up it will not buffer memory to the disk, instead processes may be killed.
There are two potential solutions for this issue:
1.) Upgrade to a droplet with more RAM. This will provide the best performing solution for this problem as RAM is much faster than swap.
2.) Create a swap file on your droplet. The installation and other process that have to use the swap space will run slower than they would in physical memory but this should prevent the process from being killed.
Hello all,
I will also recommend adding a swap file. You can check our tutorial on How To Add Swap Space on Ubuntu 20.04
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04
If you’re still having issues you can use tools like top to monitor the processes on your server and see if a service is using way too many resources.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.