(Created page with "== Install NPM == Setup with Ubuntu: <pre>curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -</pre> Then install with Ubuntu: <pre>sudo apt-get install --yes no...")
 
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
== Increase Swap ==
== Increase Swap ==


The memory of my slice only has 512MB ram, so I ended up needing to increase the size of the swap in order for NPM to run correctly.
The memory of my slice is only 512MB ram, so I ended up needing to increase the size of the swap in order for NPM to run correctly.


<pre>
<pre>
dd if=/dev/zero of=/swapfile bs=1024 count=SIZE
fallocate -l 1024M /swapfile
chmod 600 /swapfile
chmod 600 /swapfile
mkswap /swapfile
mkswap /swapfile
swapon /swapfile
swapon /swapfile
</pre>
</pre>

Latest revision as of 05:50, 1 December 2015

Install NPM

Setup with Ubuntu:

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -

Then install with Ubuntu:

sudo apt-get install --yes nodejs

Increase Swap

The memory of my slice is only 512MB ram, so I ended up needing to increase the size of the swap in order for NPM to run correctly.

fallocate -l 1024M /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile