close

[Solved] ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set

Today I am trying to run npm install and I am facing the following error: gypgyp ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set, not running in VS Command Prompt gyp gypERR! ERR! find VSfind VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! gypfind VS gyp ERR!ERR! find VSfind VS msvs_version not set from command line or npm config npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@3.1.13 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! Failed at the sqlite3@3.1.13 install script in Nodejs. In this Exerror article, We are going to learn about How to reproduce this error and we will discuss All Possible Solutions Lets Get Start with This Article.

How ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set Occurs?

I am trying to run npm install and I am facing the following error:

gypgyp ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set, not running in VS Command Prompt

gyp gypERR! ERR! find VSfind VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! gypfind VS

gyp ERR!ERR! find VSfind VS msvs_version not set from command line or npm config npm

ERR! code ELIFECYCLE npm ERR! errno 1
npm ERR! sqlite3@3.1.13 install: `node-pre-gyp install –fallback-to-build`
npm ERR! Exit status 1
npm ERR! Failed at the sqlite3@3.1.13 install script.

So here I am writing all the possible solutions that I have tried to resolve this error.

How To Solve ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set?

  1. How To Solve ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set?

    To Solve ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set Just try to find this executable file named MSBuild.exe which should be located at C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe this Path Just Copy Your Full Path and set npm config set msbuild_path with this path. Just run this command: npm config set msbuild_path “C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe” And now, Your error will be solved Successfully. Thank You.

  2. ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set

    To Solve ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set You need to run Required tools and configurations using Microsoft's windows-build-tools You can run this command in your terminal. Open Your terminal with Administrator Privileges: npm install –global windows-build-tools And then Try to run npm install and now your error maybe solved, Thank You.

Solution 1: Install windows-build-tools

To Solve ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set You need to run Required tools and configurations using Microsoft’s windows-build-tools You can run this command in your terminal. Open Your terminal with Administrator Privileges.

npm install --global windows-build-tools

And then Try to run npm install and now your error maybe solved, Thank You.

Solution 2: Desktop development with C++

You need to install Desktop development with C++ along with Visual Studio while Installing Visual Studio Community Dont Forgot to Tick Mark this Desktop development with C++ and then restart Your PC and Your error must be solved.

Soltion 3: Set msbuild_path

Just try to find this executable file named MSBuild.exe which should be located at C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe this Path Just Copy Your Full Path and set npm config set msbuild_path with this path. Just run this command.

npm config set msbuild_path "C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe"

And now, Your error will be solved Successfully. Thank You.

Solution 4: Install node-gyp

You need to install node-gyp before npm install Just run this command in your terminal.

npm install -g node-gyp

and then you can run the npm install command.

npm install

Now, Your error must b resolved. Thank You.

Conclusion

It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment