title: Install Angular CLI on Google Cloud Shell
body: <p>I'm trying to install the <code>@angular/cli</code> npm package inside of the Google Cloud Shell. When I run <code>npm install -g @angular/cli</code> the package manager does through and starts trying to perform the install and then fails with a permissions issue.</p>
  
  <blockquote>
    <p>Error: EACCES: permission denied, access '/usr/local/nvm/versions/node/v6.9.2/lib/node_modules'</p>
  </blockquote>
  
  <p>I've tried to run this with <code>sudo npm install -g @angular/cli</code> but the terminal tells me:</p>
  
  <blockquote>
    <p>NPM: command not found"</p>
  </blockquote>
  
  <p>I tried to perform the installation to my $HOME instead, using this gist, but accessing the <code>~/.bashrc</code> file is denied.</p>
  
  <p>What am I supposed to do in order to install global node packages like this? </p>