title: gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/project_name/node_modules/node-sass/build'
body: <p>I'm deploying an Angular project on Ububtu 16.04 and get these errors when I run sudo npm install. (won't work without sudo). It seems that npm doesn't have permission to install. I recently updated to nodejs to 8.11.4 and still have the same error so it wasn't a version problem apparently. How can I give it the correct permissions?</p>
  
  <pre><code>gyp ERR! configure error 
  gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/project_name/node_modules/node-sass/build'
  gyp ERR! System Linux 4.4.0-1065-aws
  gyp ERR! command "/usr/local/bin/node" "/var/www/project_name/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "-libsass_library="
  gyp ERR! cwd /var/www/front-stormsensor/node_modules/node-sass
  gyp ERR! node -v v8.11.4
  gyp ERR! node-gyp -v v3.8.0
  gyp ERR! not ok 
  Build failed with error code: 1
  </code></pre>
  
  <p>Is there something off within my project? Or an incorrect installation? Not sure where to go from here, thank you</p>