GithubHelp home page GithubHelp logo

Comments (5)

huseyinacacak-janea avatar huseyinacacak-janea commented on June 15, 2024 1

VS2022 support was added in v8.4.0. The version you are using was not supported. Please try with the newer version.

from node-gyp.

MeridianGH avatar MeridianGH commented on June 15, 2024

I'm getting the same error when trying to install dependencies for a large project.

I tried the same steps as you did to no avail as well.

Interestingly enough, I tried simply running the command MSBuild in command prompt and recieved an error as well.
I then set C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin in my PATH environment variable.
The command works now in command prompt and PowerShell, but installing dependencies with yarn does not.

So basically +1. Looking forward to hearing ideas to fix this.

EDIT:
According to this StackOverflow answer running yarn with Node v14 installed works. I tried switching to v14.21.3 with nvm and it indeed worked fine.

from node-gyp.

cfficaurzua avatar cfficaurzua commented on June 15, 2024

it doesn't worked for me with node 14
i have the path set correctly

from node-gyp.

cclauss avatar cclauss commented on June 15, 2024

npm config set msvs_version 2022 --global

Try npm config ls -l | grep msvs to see if npm supports that setting.

Also, try npm config list to see npm's current settings.

from node-gyp.

StefanStojanovic avatar StefanStojanovic commented on June 15, 2024

Closing this issue, since the version of node-gyp used doesn't even support VS2022.

from node-gyp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.