title: how to fix $PATH in Virtual Box Ubuntu 14.04 after npm global install
body: <p>I've been trying to install npm globally in virtual box with ubuntu 14.04 and Apache 2.4 with various problems with Laravel 5.1</p>
  
  <p>Reading through the docs on npm adn following through these instructions <a href="https://docs.npmjs.com/getting-started/fixing-npm-permissions" rel="nofollow">https://docs.npmjs.com/getting-started/fixing-npm-permissions</a> I know I have completed wrecked my $PATH</p>
  
  <p>Previously when I ran echo $PATH I got something like this;</p>
  
  <pre><code>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games
  </code></pre>
  
  <p>Now when I echo $PATH I get the following;</p>
  
  <pre><code>/usr/local/bin:/bin
  </code></pre>
  
  <p>I have managed to stuff everything up on my Laravel install, composer no longer works, php artisan no longer works - am just wondering if anyone is able to help me get back to where I was...</p>