title: Process killed when running npm install during file generation step of production guide (Canvas LMS)
body: <p>I am trying to set up a canvas lms on an amazon ec2 Ubuntu environment. I've gone so far until the file generation step of the production environment guide. I've been able to successfully follow the steps until this point.</p>
  
  <p><strong>Steps to reproduce:</strong></p>
  
  <p>I was successful in making the asset directories and taking their ownership as directed in this step:</p>
  
  <pre><code>sysadmin@appserver:~$ cd /var/canvas 
  sysadmin@appserver:/var/canvas$ mkdir -p log tmp/pids public/assets    public/stylesheets/compiled 
  sysadmin@appserver:/var/canvas$ touch Gemfile.lock
  sysadmin@appserver:/var/canvas$ sudo chown -R canvasuser config/environment.rb log tmp public/assets \ public/stylesheets/compiled Gemfile.lock config.ru`
  </code></pre>
  
  <p>After this, I run 'npm install'</p>
  
  <p>It is at this point that after getting some deprecated warnings I get stuck at this line:</p>
  
  <pre><code>canvas-lms@0.0.0 preinstall /home/ubuntu/canvas/script/gem_npm install
  running npm install for gems/canvas_i18nliner/package.json
  running npm install for gems/selinimum/package.json
  Killed [      ..] / extract:lodash: sill gunzTarPerm modified mode [ 'fp/getOr.js', 420, 436 ]'
  </code></pre>
  
  <p><strong>What I've already tried:</strong></p>
  
  <p>First I thought it was an error with the port 9418/tcp not being open. I opened this port through amazon ec2 security group inbound rules. This did not work. Then I tried opening all the ports 1-65000 to fix this. It still did not work.</p>
  
  <p><strong>Additional notes:</strong></p>
  
  <p>From the looks of it, it does not looks like a port issue because the script is able to fetch data in the previous steps. Also from the progress bar it can be seen that the extract is failing only when the last 2 dots are left as the progress bar is shows like this: [ ..]. I'm guessing this is a .js creation erorr.</p>
  
  <p>The documentation provides a link to fix those issues but the description of the steps to follow are not very elaborate there as I can't understand what exactly i need to do. Can someone please look into this and help me? Any help is much appreciated.</p>
  
  <p>The <a href="https://github.com/instructure/canvas-lms/wiki/Production-Start#file-generation" rel="nofollow noreferrer" title="File Generation">File Generation</a> section in the production guide says to follow this <a href="https://groups.google.com/forum/#!searchin/canvas-lms-users/empty%2420css%2420files/canvas-lms-users/-miJsiuK1rA/q1GasvXzUDwJ" rel="nofollow noreferrer">link</a> to fix .js creation issues. The solution I found in this link was to add the following code to the compile_template function found in lib/handlebars/handlebars.rb file. The directory lib/handlebars does not exist in /lib</p>
  
  <pre><code>def compile_template(source, id, plugin=nil)
  require 'execjs'
  require 'multi_json'
  </code></pre>
  
  <p>P.S. I downloaded my installation directly from the git repository so no chance of this being missing for some reason :/</p>