title: How can I install npm for Opsworks Rails application layer on Ubuntu 12.04
body: <p>On Ubuntu 12.04, if you install nodejs through the regular sources </p>
  
  <pre><code>apt-get install nodejs
  </code></pre>
  
  <p>You'll get an older version of nodejs (0.6) that does not contain npm. You can manually <a href="https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/" rel="nofollow">install the upstream version</a> and then you will have npm.</p>
  
  <p>Similarily, adding nodejs to OS packages on the Rails applicaiton Layer gives me the older version of node. How can I can install a nodejs with npm for a Rails application layer on OpsWorks? </p>