gyp ERR! Update your npm and Node.js to the latest versions. npm ERR! find VS - does not match this Visual Studio Command Prompt gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022" ; node bin location = C:\Program Files\nodejs\node.exe gyp ERR! npm ERR! Hi @cclauss , Do you know how to remove it from npm config, npm ERR! Alternatively, you can set the msvs_version using the npm config file. gyp ERR! gyp ERR! how to fix `VS VCINSTALLDIR not set, not running in VS Command Prompt find VS looking for Visual Studio 2015 Try running npm config set msvs_version 2022 before your other commands. cwd E:\web development\skuad\talent-view-service\node_modules\node-rdkafka gyp ERR! Is there a way to fix this in code that does not require rebooting the shell with a nonstandard config? npm ERR! find VS - looking for Visual Studio version 2022 i do npm config set msvs_version 2019 i use Visual Studio Build Tools lasted is 2019,but i can not work find VS - found "Visual Studio C++ core features" gyp ERR! stack at C:\Users\xxx\AppData\Roaming\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022" stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\39071\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14) find VS - found "Visual Studio C++ core features" npm ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" not ok, npm ERR! npm ERR! Windows Node.js Visual Studio . gyp info using node-gyp@9.0.0 node-gyp -v v9.0.0 gyp info using node-gyp@9.0.0 Yes, you can set the msvs_version for a specific project by running the command without the --global flag or adding the msvs_version configuration in the project's .npmrc file. npm ERR! gyp ERR! npm ERR! We want both msbuild_path AND msvs_version to point to 2017 artifacts. gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16 configure error gyp ERR! By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Does someone has the tip to solve this? find VS For more information consult the documentation at: node-gyp -v v9.0.0 config = "msvs_version" I have the same error , i have node v 17.1.0 , node-gyp v 8.4.1 ans VS 2022 . These days Node includes all that you need if you pick the "Install additional tools" option in the installer. stack Error: Could not find any Visual Studio installation to use command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" npm ERR! to your account, I install npm in terminal Thanks for contributing an answer to Stack Overflow! Today I'm struggling with the same issue, once again, latest version of everything, tried everything, set the VCINSTALLDIR env var, npm config. configure error gyp ERR! stack at maybeClose (node:internal/child_process:1092:16) System Windows_NT 10.0.19044 find VS - does not match this Visual Studio Command Prompt @cclauss yes but in the Visual Studio Developer Command prompt only. gyp ERR! node-gyp -v v9.0.0 Hi @cclauss , I tried this before running npm install, getting same error, In my machine i only have 2017 build tools, should i install manually, I have installed windows build tools using gyp ERR! find VS checking VS2022 (17.2.32616.157) found at: gyp info using node@16.15.0 | win32 | x64 npm ERR! npm config set msvs_version 2019 Ejemplo de error gyp ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47) Find centralized, trusted content and collaborate around the technologies you use most. npm ERR! gyp ERR! node_gyp = "C:\Users\manju\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" I think the auto-detection works best (has the best chance of success) if you don't try to constrain it with these env vars and configs? Asking for help, clarification, or responding to other answers. npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 Anyone got it working yet? npm ERR! Following old answers, npm i -g windows-build-tools is an easy and successful answer. npm ERR! My solution was combination of all previous fixes: Install Visual Studio 2017 (https://my.visualstudio.com/Downloads?q=Visual%20Studio%202017 - It will ask you to log in, choose Build Tools for Visual Studio 2017 (version 15.9)), When installing, choose Desktop development with C++ (or similar name), In C:\Users\\ open .npmrc file and delete everything inside, save and close file. find VS gyp ERR! find VS - does not match this Visual Studio Command Prompt gyp ERR! stack Error: Could not find any Visual Studio installation to use find VS running in VS Command Prompt, installation path is: To subscribe to this RSS feed, copy and paste this URL into your RSS reader. npm ERR! One less feature, but one less pain. gyp ERR! gyp info find Python using Python version 3.10.4 found at "C:\Users\39071\AppData\Local\Programs\Python\Python310\python.exe" find VS gyp ERR! node_gyp = "C:\Users\manju\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" gyp ERR! gyp ERR! gyp ERR! npm ERR! gyp ERR! gyp info find Python using Python version 3.10.5 found at "C:\Users\xxx\AppData\Local\Programs\Python\Python310\python.exe" npm ERR! npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" I guess you should install the 2022 build tools and go all-in on 2022 instead of 2017. find VS gyp ERR! gyp ERR! Already on GitHub? npm ERR! gyp ERR! So for me the error was the same, I need MSVS for my application, gyp ERR! npm ERR! npm ERR! npm ERR! stack at maybeClose (internal/child_process.js:1055:16) Laravel: V 7. npm ERR! gyp ERR! npm ERR! privacy statement. npm ERR! Learn more about @percy/cli-command: package health score, popularity, security, maintenance, versions and more. The error should be resolved. gyp ERR! Content Discovery initiative April 13 update: Related questions using a Review our technical responses for the 2023 Developer Survey, Sending command line arguments to npm script. npm ERR! gyp ERR! npm ERR! I running node version 18 got same problem but then i downgrade to node version 14 then run again npm install and problem solved. gyp ERR! This solved my issue. stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14) npm ERR! gyp ERR! gyp ERR! find VS gyp ERR! find VS - will only use this version ; Run npm config ls -l to show all defaults. gyp started to work perfectly well, ps for my project I also installed Visual Studio Build Tools (2022 version) with Desktop development with C++ workload and Python311 with configuring its PATH in win10. gyp ERR! The current version is v9.1.0 https://github.com/nodejs/node-gyp/releases Please upgrade. node -v v14.17.0 gyp info using node@14.17.0 | win32 | ia32 node-gyp TroubleShooting in Windows 1. gyp ERR! npm ERR! It happened, because built-in npm certificate has expired over the years. npm ERR! find VS gyp ERR! rev2023.5.1.43405. gyp ERR! node -v v16.15.0 I wonder if these folks have the VCINSTALLDIR environment variable set to an invalid path. find VS checking VS2017 (15.9.28307.1974) found at: find VS checking VS2022 (17.5.33502.453) found at: npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 find VS gyp ERR! In 5e D&D and Grim Hollow, how does the Specter transformation affect a human PC in regards to the 'undead' characteristics and spells? stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:372:16 npm ERR! Why don't we use the 7805 for car phone chargers? stack at ChildProcess.emit (events.js:376:20) npm ERR! find VS Don't need to open new issues when this one hasn't resolved yet ! Compile node-gyp C++ addon with Visual Studio 2017 or 2019 find VS looking for Visual Studio 2015 npm ERR! I am getting "msvs_version` is not a valid npm option" when trying to do this. npm ERR! npm ERR! npm ERR! find VS find VS https://github.com/nodejs/node-gyp#on-windows code 1 gyp ERR! npm ERR! Hope this works for you. Won't let me run npm uninstall node-saas either without failing. No, well at least I didn't have to do that, another thing I did to fix this error when it appeared again on an older project was downgrading node.js to version 14.16.1, In my case it worked after downgrading node.js to v16.13.0, for me it was "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe". I found this, while trying again but I am sure I have 9.3.0 on "C:\nodejs\node_modules\node-gyp". when installing node sass in windows 11 with Visual Studio 2022 Enterprise installed, How a top-ranked engineering school reimagined CS curriculum (Ep. gyp ERR! find VS ************************************************************** npm ERR! "lerna": "^4.0.0", I think I am simply to noob to fix it. gyp ERR! Not the answer you're looking for? npm ERR! gyp ERR! stack at C:\Users\xxx\AppData\Roaming\npm\node_modules\node-gyp\lib\util.js:33:16 gyp ERR! npm ERR! npm ERR! gyp ERR! gyp ERR! npm ERR! npm ERR! gyp ERR! gyp ERR! Did the drapes in old theatres actually say "ASBESTOS" on them? gypfind VS gyp ERR!ERR! find VS msvs_version was set from command line or npm config gyp ERR! npm ERR! gyp ERR! npm ERR! not sure if not select default optinal see image. npm ERR! Try running npm install -no-optional to install only the required dependencies. command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild npm ERR! [Solved] node-gyp configure got "gyp ERR! find VS" | 9to5Answer I have all the necessary paths set and I have Visual Studio 2017, 2019 and 2022 installed with the necessary C++ thingys. gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows gyp ERR! You can see this how to change PowerShell mode to fulllanguage mode from constrained mode? but when I am running "npm install" oder "yarn install" with the listed package.json I also get the same error: _gyp info it worked if it ends with ok The error should be resolved. npm ERR! System Windows_NT 10.0.19044 npm ERR! npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use npm ERR! npm ERR! gyp ERR! find VS npm ERR! find VS looking for Visual Studio 2015 npm ERR! gyp ERR! gyp info using node@16.15.0 | win32 | x64 Well occasionally send you account related emails. gyp ERR! I get the following error after doing all this helpful configurations and commands, when running the command: node-gyp configure, I use OS Windows 10 with NodeJS Version 14.17.0 and node-gyp version 9.0.0 with Python 3.10.5 and npm version 8.12.2 and Visual Studio 2022, gyp info it worked if it ends with ok Connect and share knowledge within a single location that is structured and easy to search. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. find VS - found VC++ toolset: v143 gyp ERR! gyp ERR! This was without node-saas in the package file, with the lock file deleted, with node modules folder deleted. gyp ERR! npm config get msvs_version should be using 2022 --> npm config set msvs_version 2022 --global. find VS ************************************************************** npm ERR! npm ERR! You must install peer dependencies yourself. gyp ERR! npm ERR! npm ERR! Hi, I'm facing this issue from last 4days, I have tried all the methods, still facing same issue. find VS - found "Visual Studio C++ core features" https://github.com/adonis-china/adonis-adminify, https://github.com/nodejs/node-gyp#on-windows, kaulshapranav wrote in a couple of comments, get the VS build tools latest version exe, Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019, https://my.visualstudio.com/Downloads?q=Visual%20Studio%202017, https://github.com/felixrieseberg/windows-build-tools/issues/244, How a top-ranked engineering school reimagined CS curriculum (Ep. How do the interferometers on the drag-free satellite LISA receive power without altering their geodesic trajectory? stack at ChildProcess.exithandler (node:child_process:406:5) gyp ERR! gyp ERR! not ok, npm ERR! node-gyp -v v9.0.0 gyp ERR! What should I follow, if two altimeters show different altitudes? npm ERR! have made all the suggestion and still have the same error. stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\xxx\AppData\Roaming\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14) npm ERR! gyp ERR! I have installed vs 2017 and 2022 And also tried npm config set msvs_version 2022, Please refer this Article: Related thread find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" gyp ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7 find VS You need to install the latest version of Visual Studio which is the current release so no further upgrade is needed. This is now working for me. In my case the issue was due to incompatible node js version, I had the same issue and finally this works for me, run this command: xcode-select --install. gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 stack at C:\Users\xxx\AppData\Roaming\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14 gyp ERR! registry = "https://registry.npmjs.org/" find VS not looking for VS2013 as it is only supported up to Node.js 8 stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47) MSBuild.exe` failed with exit code: 1, im having problem when running npm install, User without create permission can create a custom object from Managed package using Custom Rest API. node v18.12.1 How can I solve error gypgyp ERR!ERR! find VSfind VS msvs_version not stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 npmgyp? - It gyp ERR! Try running npm install with the --no-optional flag. npm ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community" gyp ERR! Hey, I tried a few things and I can't get the thing to run npm install npm ERR! stack at ChildProcess.emit (node:events:527:28) Plus upgrade from node-gyp v3.8.0 to v9.3.0. Already on GitHub? npm ERR! gyp ERR! Sign in gyp ERR! find VS npm config set msbuild_path "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Msbuild\Current\Bin\MSBuild.exe" errno 1 npm ERR! I tried to solve this issue using npm i -g windows-build-tools but not working then I install Visual Studio Build Tools desktop development with c++ tools Configuring Python Dependency Npm config set msvs_version 2015 -global Current Issue ut that was quickly remedied by this command setting: Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". find VS https://github.com/nodejs/node-gyp#on-windows gyp will then find that version and use it: gyp info find Python using Python version 3.8.1 found at "C:\Users\USER\AppData\Local\Programs\Python\Python38-32\python.exe". npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\39071\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47) gyp ERR! gyp ERR! msvs_version not set from command line or npm config After this one you find a few of these: "Visual Studio C++ core features" missing And later: You need to install the latest version of Visual Studio including the " Desktop development with C++ " workload. npm ERR! I solved the issue with npm install -g node-gyp, then npm install. I'm learning and will appreciate any help. gyp ERR! gyp ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" gyp ERR! find VS For more information consult the documentation at: gyp ERR! This tool (windows-build-tools) is now deprecated, node should do this for you now. gyp ERR! find VS msvs_version was set from command line or npm config npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022" gyp ERR! gyp info using node@16.15.1 | win32 | x64 stack at C:\Users\39071\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 find VS could not find a version of Visual Studio 2017 or newer to use python3.10 = "" Yes, you can have multiple versions of Visual Studio installed on the same machine. config = "msvs_version" gyp info it worked if it ends with ok npm ERR! If the path is wrong and there is no usable/matching Visual Studio install there, node-gyp errors out.). gyp ERR! npm ERR! npm ERR! I sometimes feel some of the "smart" is lost in how overly complex npm is. command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild Then try running npm config set msvs_version 2017 before your other commands. gyp ERR! @nodejs/platform-windows I really dislike the following logic flow: This seems to be a recurring blocker among our Window issues. gyp info using node@14.17.0 | win32 | ia32 gyp ERR! Windows: cannot install npm and error show gyp error on node - Github find VS - found VC++ toolset: v143 gyp ERR! and finally successfully solved this issue. gyp ERR! My colleagues and I have saved countless hours with this solution. npm ERR! find VS checking VS2022 (17.2.32616.157) found at: gyp ERR! gyp ERR! when installing node sass in windows 11 with Visual Studio 2022 Enterprise installed. find VS - will only use this version gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7 code 1 gyp ERR! command failed stack at ChildProcess.exithandler (node:child_process:406:5) gyp ERR! npm ERR! npm ERR! gyp ERR! Are these quarters notes or just eighth notes? npm ERR! gyp ERR! To set the msvs_version using the command line, follow these steps: Open the command prompt or PowerShell with administrative privileges. gyp ERR! Now you can run build or install. find VS running in VS Command Prompt, installation path is: find VS running in VS Command Prompt, installation path is: find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" gyp ERR! npm ERR! npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config Have a question about this project? find VS - found "Visual Studio C++ core features" find VS - not found npm ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 find VS - found Windows SDK: 10.0.19041.0 @davidxwwang I am also getting this error, how can I solve it? python = "c:\Python\27\python.exe" npm ERR! node -v v16.15.0 gyp ERR! 9 manjumallesh678 Hi @cclauss , I tried this before running npm install, getting same error https://registry.npmjs.org/ ; Run npm config ls -l Oh. cwd C:\Users\xxx\WebstormProjects\projectname\node_modules\lmdb Maybe your Powershell is in ConstrainedLanguage mode. What is Wario dropping at the end of Super Mario Land 2 and why? gyp ERR! Launch cmd, npm config set msvs_version 2017 If the above steps didn't work for you, please visit Microsoft's Node.js Guidelines for Windows for additional tips. gyp ERR! npm ERR! gyp ERR! npm ERR! find VS ************************************************************** find VS running in VS Command Prompt, installation path is: Reply to this email directly. stack Error: Could not find any Visual Studio installation to use Did the drapes in old theatres actually say "ASBESTOS" on them? gyp info using node@16.15.0 | win32 | x64 gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022" | win32 | x64 gyp info find Python using Python . stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16 I have done everything mentioned at top but npm i still not working. find VS running in VS Command Prompt, installation path is: gyp info using node-gyp@9.0.0 npm ERR! npm ERR! npm ERR! npm ERR! python = "c:\Python\27\python.exe" find VS checking VS2022 (17.2.32616.157) found at: What were the most popular text editors for MS-DOS in the 1980s? find VS - does not match this Visual Studio Command Prompt gyp ERR! find VS checking VS2022 (17.2.32616.157) found at: gyp ERR! find VS - will only use this version Welcome back! Additionally you can set npm config set msbuild_path "C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe" find VS - found VC++ toolset: v141 gyp ERR! A complete log of this run can be found in: msbuild_path = "C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe" gyp info it worked if it ends with ok To do so, follow these steps: For example, if you have Microsoft Visual Studio 2019 installed, the line will be: node-gyp is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. node-gyp v9.3.1 Should I re-do this cinched PEX connection? npm ERR! gyp ERR! C:\Users\manju\AppData\Local\npm-cache_logs\2022-05-27T07_01_18_568Z-debug-0.log, npm ERR! gyp ERR! npm ERR! gyp ERR! gyp ERR! npm ERR! stack Error: Could not find any Visual Studio installation to use npm config set msvs_version 2022 command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" npm ERR! gyp ERR! gyp ERR! Always the same error. gyp info find VS using VS2019 (16.4.29709.97) found at: gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\. I've spent days on this. npm ERR! config = "msvs_version" gyp ERR! gyp ERR! find VS To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Visual Studio Installer -> Modify Installed(Visual Studio Community 2019) -> Workloads(tab) -> [x] Desktop development with C++ -> Install, I finally solved it on my end npm ERR! npm ERR! npm ERR! You signed in with another tab or window. npm ERR! gyp ERR! npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! stack Error: Could not find any Visual Studio installation to use gyp ERR! Why does npm install say I have unmet dependencies? find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022" find VS gyp info find Python using Python version 3.10.4 found at "C:\Users\manju\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe" rev2023.5.1.43405. I'll get same error with this line change It happened, because built-in npm certificate has expired over the years. stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:70:14 find VS including the "Desktop development with C++" workload. gyp ERR! gyp ERR! find VS - will only use this version gyp ERR! gyp ERR! Making statements based on opinion; back them up with references or personal experience. npm ERR! gyp ERR! find VS - found VC++ toolset: v143 Installing edge impulse CLI using command prompt find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022". gyp ERR! find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2022\Community" find VS msvs_version not set from command line or npm config npm install --global --production windows-build-tools Segunda solucin. can you check afterwards which version it effectively installed ? npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16 Can you still use Commanders Strike if the only attack available to forego is an attack against an ally? gyp ERR! find VS - found "Visual Studio C++ core features" v14.15.4 is node version. find VS You need to install the latest version of Visual Studio npm ERR! gyp info using node-gyp@9.0.0 npm ERR! npm config get msvs_version (4) exe (RagavanOR microsoft"> Microsoft "> Microsoft ">2015 ) npm config set msvs_version 2019 --global (Ragavannpm config set msvs . npm ERR! Requests for help with node-sass are very common. gyp ERR! npm install --global --production windows-build-tools, and = "yarn" gyp ERR! npm ERR! npm ERR! find VS find VS find VSfind VS msvs_version not set from command line or npm config", the executable file named MSBuild.exe which you should be find in the following location C:\Program Files\Microsoft Visual Studio\2022 . so you can find this.envVcInstallDir be set to be the parent dir of vsPath, so error happen, what you can do fix the problem. Which reverse polarity protection is better and why? If you don't know how to do it google it. If we had a video livestream of a clock being sent to Mars, what would we see? command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild stack at maybeClose (node:internal/child_process:1092:16) gyp ERR! What I decided to do is that. Hi @cclauss , Thank you so much for responding. find VS VCINSTALLDIR not set, not running in VS Command Prompt find VS - found VC++ toolset: v143 find VS You need to install the latest version of Visual Studio Nothing! configure error find VS checking VS2017 (15.9.28307.1974) found at: gyp ERR! npm config set msvs_version does not work and I still get msvs_version not set from command line or npm config. gyp ERR! not ok, npm ERR! npm ERR! gyp ERR! find VS For more information consult the documentation at: At this point, when running npm install, node-gyp will still find your Visual Studio 2022 installation directory and attempt to use it (even if you set msvs_version to 2019), so you must add VCINSTALLDIR into your User environment variables (Start, System Properties, Environment Variables) using this directory: After this, run "refreshenv" at the command prompt, then run npm install, and feel refreshed that the suffering is over.