msvs_version not set from command line or npm config

@davidxwwang I am also getting this error, how can I solve it? npm ERR! Now you can run build or install. problem is here, why this happen. find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022". or grep node-sass . find VS valid versions for msvs_version: 3. gyp ERR! npm ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt To set the msvs_version using the command line, follow these steps: Replace with the version of your installed Visual Studio, such as 2015, 2017, or 2019. npm ERR! Following old answers, npm i -g windows-build-tools is an easy and successful answer. npm ERR! gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022" At first, I would run Visual Studio Installer and add "Visual Studio C++ core features", because it says it wants it and it is missing in your VS2019 installation. gyp info ok npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 gyp ERR! npm ERR! npm ERR! node-gyp -v v9.0.0 stack at C:\Users\xxx\AppData\Roaming\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16 gyp info using node@14.17.0 | win32 | ia32 Windows Node.js Visual Studio . gyp ERR! npm ERR! npm ERR! npm ERR! npm ERR! gyp ERR! gyp ERR! gyp info find Python using Python version 3.10.4 found at "C:\Users\manju\AppData\Local\Microsoft\WindowsApps\Pyth\python.exe" Edit: okay, if you really have a good reason to run an ancient version of the software, npm set ca null will fix the issue. Also when we do. gyp ERR! ; cwd = C:\WINDOWS\system32 gyp ERR! npm ERR! gyp ERR! gyp ERR! npm ERR! gyp ERR! gyp ERR! find VS ************************************************************** find VS not looking for VS2013 as it is only supported up to Node.js 8 find VS - will only use this version gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\xxx\AppData\Roaming\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14) gyp ERR! stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\util.js:33:16 Probably because of the "constrained language mode" of powershell. npm ERR! To learn more, see our tips on writing great answers. You've successfully signed in. (https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes?view=powershell-7.3) find VS - not found not ok, npm ERR! configure error ; HOME = C:\Users\manju This is now working for me. find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022"

Shooting In Dekalb County Last Night 2021, Where Is Modani Furniture Made, Dr Phil Cryptic Pregnancy Update, Articles M

Brak możliwości komentowania