{"id":201,"hash":"5cef57e92512060b0d42d835fe5b7c8ec8b088292af745f9e5d16b7318d527fc","pattern":"How can I solve error &quot;gypgyp ERR!ERR! find VSfind VS msvs_version not set from command line or npm config&quot;?","full_message":"I want to install Adonis Admin. When I run npm install I get:\n\n> sqlite3@3.1.13 install C:\\laragon\\www\\adonis-admin\\node_modules\\sqlite3\n> node-pre-gyp install --fallback-to-build\n\nnode-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v64-win32-x64.tar.gz\nnode-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@10.15.0 (node-v64 ABI) (falling back to source compile with node-gyp)\nnode-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v64-win32-x64.tar.gz\nnode-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@10.15.0 (node-v64 ABI) (falling back to source compile with node-gyp)\ngyp ERR! gypfind VS\n gyp ERR!ERR!  find VSfind VS\n msvs_version not set from command line or npm config\ngypgyp  ERR!ERR!  find VSfind VS msvs_version not set from command line or npm config\n VCINSTALLDIR not set, not running in VS Command Prompt\ngyp gypERR! ERR!  find VSfind VS VCINSTALLDIR not set, not running in VS Command Prompt\ngyp checking VS2019 (16.2.29230.47) found at:\n gypERR!  find VSERR! checking VS2019 (16.2.29230.47) found at:\ngyp  find VS \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\"\nERR!gyp find VS ERR! \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\"\n gypfind VS ERR! - \"Visual Studio C++ core features\" missing\ngyp  ERR!find VS  - \"Visual Studio C++ core features\" missing\nfind VSgyp could not find a version of Visual Studio 2017 or newer to use\n gypERR!  ERR!find VS  could not find a version of Visual Studio 2017 or newer to use\nfind VS looking for Visual Studio 2015\ngyp gyp ERR!ERR!  find VSfind VS looking for Visual Studio 2015\n - not found\ngyp gyp ERR!ERR!  find VSfind VS - not found\n not looking for VS2013 as it is only supported up to Node.js 8\ngyp ERR!gyp  ERR!find VS find VS not looking for VS2013 as it is only supported up to Node.js 8\n\ngyp gypERR!  ERR!find VS\n gypfind VS  **************************************************************\ngypERR!  ERR!find VS find VS **************************************************************\n You need to install the latest version of Visual Studio\ngypgyp ERR!  ERR!find VS find VS You need to install the latest version of Visual Studio\n including the \"Desktop development with C++\" workload.\ngypgyp  ERR!ERR! find VS find VS including the \"Desktop development with C++\" workload.\n For more information consult the documentation at:\ngyp ERR!gyp find VS  For more information consult the documentation at:\nERR!gyp  ERR! find VSfind VS https://github.com/nodejs/node-gyp#on-windows\n https://github.com/nodejs/node-gyp#on-windows\ngyp gyp ERR!ERR! find VS  **************************************************************\nfind VSgyp **************************************************************\n gypERR! find VS\nERR! find VS\ngyp gypERR!  ERR!configure error\n configure errorgyp\n ERR! stackgyp Error: Could not find any Visual Studio installation to use\n gypERR!  stackERR! Error: Could not find any Visual Studio installation to use\n stackgyp      at VisualStudioFinder.fail (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:121:47)\nERR!gyp stack      at VisualStudioFinder.fail (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:121:47)\nERR! gypstack      at findVisualStudio2013 (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:74:16)\ngypERR!  ERR!stack      at findVisualStudio2013 (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:74:16)\nstack     at VisualStudioFinder.findVisualStudio2013 (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:344:14)\ngypgyp ERR! stack     at findVisualStudio2015 (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:70:14)\n gypERR!  ERR! stackstack     at regSearchKeys (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:365:16)\n     at VisualStudioFinder.findVisualStudio2013 (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:344:14)\ngyp gypERR!  ERR!stack stack     at regGetValue (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\util.js:54:7)\n     at findVisualStudio2015 (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:70:14)\ngypgyp  ERR!ERR!  stackstack     at C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\util.js:33:16\ngyp     at regSearchKeys (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:365:16)\n gyp ERR! ERR!stack     at ChildProcess.exithandler (child_process.js:301:5)\n gypstack      at regGetValue (C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\util.js:54:7)\nERR! gypstack     at ChildProcess.emit (events.js:182:13)\n gypERR! ERR!  stack     at C:\\Users\\Chelsea\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\util.js:33:16\nstack     at maybeClose (internal/child_process.js:962:16)\ngyp gypERR! ERR!  System Windows_NT 10.0.17134\nstackgyp     at ChildProcess.exithandler (child_process.js:301:5)\n ERR!gyp  commandERR! \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\Chelsea\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"configure\" \"--fallback-to-build\" \"--module=C:\\\\laragon\\\\www\\\\adonis-admin\\\\node_modules\\\\sqlite3\\\\lib\\\\binding\\\\node-v64-win32-x64\\\\node_sqlite3.node\" \"--module_name=node_sqlite3\" \"--module_path=C:\\\\laragon\\\\www\\\\adonis-admin\\\\node_modules\\\\sqlite3\\\\lib\\\\binding\\\\node-v64-win32-x64\" \"--python=C:\\\\Users\\\\Chelsea\\\\.windows-build-tools\\\\python27\\\\python.exe\"\n gypstack     at ChildProcess.emit (events.js:","ecosystem":"npm","package_name":"node.js","package_version":null,"solution":"TL;DR\nUse the Visual Studio Installer to get the Desktop development with C++ workload in one of the Visual Studio versions you have installed in your machine:\n\n2024 update: also \"check the Windows 10 SDK in the installation details\" (thanks Nicholas)\n\nReason/Details\nReading through the log, the main error is due to this:\n\nmsvs_version not set from command line or npm config\n\nAfter this one you find a few of these:\n\n\"Visual Studio C++ core features\" missing\n\nAnd later:\n\nYou need to install the latest version of Visual Studio including the \"Desktop development with C++\" workload.\n\nFor more information consult the documentation at:\n\nVS https://github.com/nodejs/node-gyp#on-windows\n\nFinally:\n\nCould not find any Visual Studio installation to use\n\nSo to solve the problem, you just need to get \"Desktop development with C++\" workload.\n\nIf you have a Visual Studio version installed\n\nopen Visual Studio Installer (Win + search for it)\non the list displayed with all Visual Studio Installations you have in your PC, press the Modify button of one of them (preferably the latest version)\non the Workloads grid/list select the checkbox with Desktop development with C++ (2024 update: also \"check the Windows 10 SDK in the installation details\" (thanks Nicholas))\nPress one of the Install buttons\n\ngyp will then find that version and use it:\n\ngyp info find Python using Python version 3.8.1 found at \"C:\\Users\\USER\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe\"\n\ngyp info find VS using VS2019 (16.4.29709.97) found at:\n\ngyp info find VS \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\\n\nWith NO Visual Studio installed\nThe following solutions assume you have node installed. Disclaimer: I did not test any of them, but I appreciate everyone that reported them solving this issue.\n\nAlternative 0: before installing additional software\nAs kaulshapranav wrote in a couple of comments, slightly shortened/rephrased:\n\nwindows-build-tools installation log mentions this tools package is deprecated and is already included with node. It corrupts my anaconda installation by installing a separate python 2.7 (...); updating npm version from 6 -> 8 solved the issue.\n\nnpm comes with node, so the solution: update your node/npm version. However, if you need to retain specific versions, nvm (notice the v) allows to change between them: simple tutorial on how to use nvm.\n\nAlternative 1\nAs Hamid Jolany's answer suggests, on an admin shell, simply install the build tools package globally (node-gyp README):\n\nnpm i -g windows-build-tools\n\nAlternative 2\nRagavan's idea/answer from a similar thread:\n\nverify if you have VS build tools by running npm config get msvs_version (if you have, skip to step 4 and attempt setting the environment variables)\nif not installed, get the VS build tools latest version exe and install it (Ragavan's idea was with or Microsoft Build Tools 2015)\nrun npm config set msvs_version 2019 --global (or npm config set msvs_version 2015 --global according to Ragavan's idea)\nPossibly optional: set the VCTargetsPathenvironment variable (Win + search for var) to the appropriate path (e.g. C:\\Program Files (x86)\\MSBuild\\Microsoft\\Portable\\v5.0) or through Run as Admin terminal, as in Ragavan's idea with the 2015 Build Tools:\n\nset VCTargetsPath=\"C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\V140\"\nor in Powershell: $env:VCTargetsPath=C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\V140\n\nSide notes:\n\na previous error might be resolved by installing Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019;\nyou might also want to restart after installing any of the above","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/57879150/how-can-i-solve-error-gypgyp-errerr-find-vsfind-vs-msvs-version-not-set-from","votes":169,"created_at":"2026-04-19T04:41:31.371333+00:00","updated_at":"2026-04-19T04:51:13.123131+00:00"}