title: Getting Error when I am doing npm install
body: <p>I am getting a gyp error when I am executing <code>npm install</code> in my project</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\bakhil\AppData\Roaming\nvm\v10.15.1\node_modules\npm\node_modules\node-gyp\lib\configure.js:345:16)
  gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
  gyp ERR! System Windows_NT 10.0.18362
  gyp ERR! command &quot;C:\\Program Files\\nodejs\\node.exe&quot; &quot;C:\\Users\\bakhil\\AppData\\Roaming\\nvm\\v10.15.1\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js&quot; &quot;clean&quot; &quot;configure&quot;
  gyp ERR! cwd C:\Users\bakhil\source\repos\BOSS.Web\node_modules\@newrelic\native-metrics
  gyp ERR! node -v v10.15.1
  gyp ERR! node-gyp -v v3.8.0
  gyp ERR! not ok
  </code></pre>
  <p>Failed to execute native-metrics install: No pre-built artifacts for your OS/architecture.</p>
  <p>I am also getting error when it is executing node-gyp rebuild</p>
  <pre><code>&gt; mmmagic@0.5.2 install C:\Users\bakhil\source\repos\BOSS.Web\node_modules\mmmagic
  &gt; node-gyp rebuild
  
  
  C:\Users\bakhil\source\repos\BOSS.Web\node_modules\mmmagic&gt;if not defined npm_config_node_gyp (node &quot;C:\Users\bakhil\AppData\Roaming\nvm\v10.15.1\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js&quot; rebuild )  else (node &quot;C:\Users\bakhil\AppData\Roaming\nvm\v10.15.1\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js&quot; rebuild )
  Traceback (most recent call last):
    File &quot;C:\Users\bakhil\AppData\Roaming\nvm\v10.15.1\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py&quot;, line 16, in &lt;module&gt;
      sys.exit(gyp.script_main())
    File &quot;C:\Users\bakhil\AppData\Roaming\nvm\v10.15.1\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py&quot;, line 545, in script_main
      return main(sys.argv[1:])
    File &quot;C:\Users\bakhil\AppData\Roaming\nvm\v10.15.1\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py&quot;, line 538, in main
      return gyp_main(args)
    File &quot;C:\Users\bakhil\AppData\Roaming\nvm\v10.15.1\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py&quot;, line 514, in gyp_main
      options.duplicate_basename_check)
    File &quot;C:\Users\bakhil\AppData\Roaming\nvm\v10.15.1\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py&quot;, line 98, in Load
      generator.CalculateVariables(default_variables, params)
    File &quot;C:\Users\bakhil\AppData\Roaming\nvm\v10.15.1\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py&quot;, line 1916, in CalculateVariables
      generator_flags.get('msvs_version', 'auto'))
    File &quot;C:\Users\bakhil\AppData\Roaming\nvm\v10.15.1\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSVersion.py&quot;, line 434, in SelectVisualStudioVersion
      versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
  KeyError: '2019'
  gyp ERR! configure error 
  gyp ERR! stack Error: `gyp` failed with exit code: 1
  gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\bakhil\AppData\Roaming\nvm\v10.15.1\node_modules\npm\node_modules\node-gyp\lib\configure.js:345:16)
  gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
  gyp ERR! System Windows_NT 10.0.18362
  gyp ERR! command &quot;C:\\Program Files\\nodejs\\node.exe&quot; &quot;C:\\Users\\bakhil\\AppData\\Roaming\\nvm\\v10.15.1\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js&quot; &quot;rebuild&quot;
  gyp ERR! cwd C:\Users\bakhil\source\repos\BOSS.Web\node_modules\mmmagic
  gyp ERR! node -v v10.15.1
  gyp ERR! node-gyp -v v3.8.0
  gyp ERR! not ok
  </code></pre>
  <pre><code>npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! mmmagic@0.5.2 install: `node-gyp rebuild`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the mmmagic@0.5.2 install script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  </code></pre>
  <p>I tried a lot of solutions none work.</p>
  <p>node version is 10.15.1</p>
  <p>python version is 2.7.17</p>
  <p>nvm running version is 1.1.7</p>
  <p>Please help me to resolve this error. I am new to react-js</p>
  <p>Thanks in advance</p>