title: npm install with error: `gyp` failed with exit code: 1
body: <p>I'm try to install modules on Windows 10 using npm 5.6.0. When I enter npm install I get:</p>
  <pre><code>gyp ERR! configure error
  gyp ERR! stack Error: `gyp` failed with exit code: 1
  gyp ERR! stack at ChildProcess.onCpExit (C:\Users\xiaooming\Desktop\app\node_modules\node-gyp\lib\configure.js:336:16)
  gyp ERR! stack at emitTwo (events.js:126:13)
  gyp ERR! stack at ChildProcess.emit (events.js:214:7)
  gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
  gyp ERR! System Windows_NT 10.0.16299
  gyp ERR! command &quot;D:\\Program Files\\nodejs\\node.exe&quot; &quot;C:\\Users\\xiaooming\\Desktop\\app\\node_modules\\node-gyp\\bin\\node-gyp.js&quot; &quot;rebuild&quot; &quot;--verbose&quot; &quot;--libsass_ext=&quot; &quot;--libsass_cflags=&quot; &quot;--libsass_ldflags=&quot; &quot;--libsass_library=&quot;
  gyp ERR! cwd C:\Users\xiaooming\Desktop\app\node_modules\node-sass
  gyp ERR! node -v v8.10.0
  gyp ERR! node-gyp -v v3.6.2
  gyp ERR! not ok
  Build failed with error code: 1
  npm WARN kingt4.0app@1.0.0 No repository field.
  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {&quot;os&quot;:&quot;darwin&quot;,&quot;arch&quot;:&quot;any&quot;} (current: {&quot;os&quot;:&quot;win32&quot;,&quot;arch&quot;:&quot;x64&quot;})
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! node-sass@3.13.1 postinstall: `node scripts/build.js`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the node-sass@3.13.1 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! C:\Users\xiaooming\AppData\Roaming\npm-cache\_logs\2018-03-18T13_02_03_946Z-debug.log
  </code></pre>
  <p>It seems like <code>node-sass</code> install error. The environment is below:</p>
  <p>Python version: 2.7.14</p>
  <p>npm version: 5.6.0</p>
  <p>node version: 8.10.0</p>
  <p>ruby version: 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]</p>
  <p>system: win10(x64)</p>
  <p>node-gyp: 3.6.2</p>
  <p>And I have installed Microsoft Visual Studio express 2015,
  the below command has been executed：</p>
  <pre><code>npm config set msvs_version 2015
  node-gyp configure --msvs_version=2015
  npm install --global --production windows-build-tools
  </code></pre>
  <h2>package.json</h2>
  <pre><code>{
    &quot;name&quot;: &quot;kingt4.0app&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;an kingt4.0 project.&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;test.js&quot;
    },
    &quot;keywords&quot;: [
      &quot;finance&quot;
    ],
    &quot;author&quot;: &quot;kingdom&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;devDependencies&quot;: {
      &quot;browser-sync&quot;: &quot;^2.11.1&quot;,
      &quot;gulp&quot;: &quot;^3.9.1&quot;,
      &quot;gulp-autoprefixer&quot;: &quot;^3.1.0&quot;,
      &quot;gulp-cache&quot;: &quot;^0.4.2&quot;,
      &quot;gulp-changed&quot;: &quot;^1.3.2&quot;,
      &quot;gulp-clean-css&quot;: &quot;^2.0.2&quot;,
      &quot;gulp-file-include&quot;: &quot;^0.13.7&quot;,
      &quot;gulp-if&quot;: &quot;^2.0.0&quot;,
      &quot;gulp-imagemin&quot;: &quot;^2.4.0&quot;,
      &quot;gulp-rename&quot;: &quot;^1.2.2&quot;,
      &quot;gulp-sass&quot;: &quot;^2.2.0&quot;,
      &quot;gulp-sourcemaps&quot;: &quot;^1.6.0&quot;,
      &quot;gulp.spritesmith&quot;: &quot;^6.2.1&quot;,
      &quot;imagemin-jpegtran&quot;: &quot;^4.3.2&quot;,
      &quot;imagemin-pngquant&quot;: &quot;^4.2.2&quot;,
      &quot;merge-stream&quot;: &quot;^1.0.0&quot;,
      &quot;normalize.css&quot;: &quot;^4.0.0&quot;,
      &quot;spritesheet-templates&quot;: &quot;^10.1.2&quot;,
      &quot;vinyl-buffer&quot;: &quot;^1.0.0&quot;
    },
    &quot;dependencies&quot;: {
      &quot;remodal&quot;: &quot;^1.0.7&quot;,
      &quot;slick-carousel&quot;: &quot;^1.6.0&quot;
    }
  }
  </code></pre>
  <p>How to resolve this problem? thanks for help.</p>