title: NPM Error When Trying To Install node-sass
body: <p>I was trying to install node-sass on Linux Mint by running the command <code>sudo npm install node-sass</code>, but I got some errors.  It says that it does not have access to some directories, which doesn't make any sense because I ran it with sudo.  I have tried many solutions on StackOverflow, including purging node, using a different version, etc. but none have worked.  Here is the full terminal log:</p>
  
  <pre><code>&gt; node-sass@4.9.3 install /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass
  &gt; node scripts/install.js
  
  Unable to save binary /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/vendor/linux-x64-57 : { Error: EACCES: permission denied, mkdir '/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/vendor'
      at Object.fs.mkdirSync (fs.js:885:18)
      at sync (/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/mkdirp/index.js:71:13)
      at Function.sync (/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/mkdirp/index.js:77:24)
      at checkAndDownloadBinary (/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/scripts/install.js:114:11)
      at Object.&lt;anonymous&gt; (/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/scripts/install.js:157:1)
      at Module._compile (module.js:652:30)
      at Object.Module._extensions..js (module.js:663:10)
      at Module.load (module.js:565:32)
      at tryModuleLoad (module.js:505:12)
      at Function.Module._load (module.js:497:3)
    errno: -13,
    code: 'EACCES',
    syscall: 'mkdir',
    path: '/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/vendor' }
  
  &gt; node-sass@4.9.3 postinstall /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass
  &gt; node scripts/build.js
  
  Building: /usr/local/bin/node /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
  gyp info it worked if it ends with ok
  gyp verb cli [ '/usr/local/bin/node',
  gyp verb cli   '/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-gyp/bin/node-gyp.js',
  gyp verb cli   'rebuild',
  gyp verb cli   '--verbose',
  gyp verb cli   '--libsass_ext=',
  gyp verb cli   '--libsass_cflags=',
  gyp verb cli   '--libsass_ldflags=',
  gyp verb cli   '--libsass_library=' ]
  gyp info using node-gyp@3.8.0
  gyp info using node@8.11.0 | linux | x64
  gyp verb command rebuild []
  gyp verb command clean []
  gyp verb clean removing "build" directory
  gyp verb command configure []
  gyp verb check python checking for Python executable "python2" in the PATH
  gyp verb `which` succeeded python2 /usr/bin/python2
  gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.12
  gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
  gyp verb get node dir no --target version specified, falling back to host node version: 8.11.0
  gyp verb command install [ '8.11.0' ]
  gyp verb install input version string "8.11.0"
  gyp verb install installing version: 8.11.0
  gyp verb install --ensure was passed, so won't reinstall if already installed
  gyp verb install version is already installed, need to check "installVersion"
  gyp verb got "installVersion" 9
  gyp verb needs "installVersion" 9
  gyp verb install version is good
  gyp verb get node dir target node version installed: 8.11.0
  gyp verb build dir attempting to create "build" dir: /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/build
  gyp ERR! configure error 
  gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/build'
  gyp ERR! System Linux 4.10.0-37-generic
  gyp ERR! command "/usr/local/bin/node" "/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
  gyp ERR! cwd /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass
  gyp ERR! node -v v8.11.0
  gyp ERR! node-gyp -v v3.8.0
  gyp ERR! not ok 
  Build failed with error code: 1
  npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! node-sass@4.9.3 postinstall: `node scripts/build.js`
  npm ERR! Exit status 1
  npm ERR! 
  npm ERR! Failed at the node-sass@4.9.3 postinstall script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/caden/.npm/_logs/2018-08-10T00_32_24_558Z-debug.log
  </code></pre>