Search code examples
sails.jsdigital-oceanubuntu-server

sailsjs installation on digital ocean ubuntu vps


I am trying to install sailsjs globally on my digital ocean vps but every time process seems to get killed . Any idea why it is happening and how I can overcome this problem. Let me know if more debug info is required.

Try1: Try1 Try2: Try2 Try3: Try3


Solution

  • You need to add a SWAP in digitalocean to temporarily store the data when installing sails or Shiny.

    Try the following code to allocate storage to a swap file:

    sudo fallocate -l xx /swapfile
    

    xx is the disk storage you want to assign, I found 1G is enough for my sails project. Then make the file enable for swap

    sudo chmod 600 /swapfile
    sudo mkswap /swapfile
    sudo swapon /swapfile
    

    The information could be found in https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04