title: Missing write access error on nativescript install
body: <p>When I attempt to install nativescrtipt by running <code>npm i -g nativescript</code>, I receive the following error:</p>
  
  <pre><code>    npm WARN checkPermissions Missing write access to 
      /usr/local/lib/node_modules/nativescript
      npm ERR! path /usr/local/lib/node_modules/nativescript
      npm ERR! code ENOENT
      npm ERR! errno -2
      npm ERR! syscall access
      npm ERR! enoent ENOENT: no such file or directory, access 
      '/usr/local/lib/node_modules/nativescript'
      npm ERR! enoent This is related to npm not being able to find a 
      file.
  </code></pre>
  
  <p>I have tried to run the command as sudo and receive the same result.  I also attempted to add write permission to the <code>node_modules</code> directory.</p>
  
  <p>I am running node v10.6.0 on macOS High Sierra.</p>