Comments (5)
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.
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.
it doesn't worked for me with node 14
i have the path set correctly
from node-gyp.
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.
Closing this issue, since the version of node-gyp used doesn't even support VS2022.
from node-gyp.
Related Issues (20)
- tar.Extract is not a function HOT 2
- find-python broke with 18.20.0 (?) on ARM HOT 5
- gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT
- [Request] Upgrade tar to v6.2.1 HOT 6
- test/test-find-visualstudio.js may fail on Windows on ARM
- complie_commands.json generated by node-gyp doesn't be in clangd search path. HOT 6
- generate compile_commands.json automatically
- Generate .gitignore and .hgignore in build
- Customize default generator
- error when using node-gyp from yarn command HOT 4
- node-gyp `binding.gyp not found` error HOT 1
- some suggestions about node-gyp build command
- error saat menjalankan "npm install imagemin-webpack-plugin [email protected] --save-dev" HOT 2
- Install of local node packages fails for node-gyp with error "Cannot assign to read only property 'cflags' of object" HOT 9
- Node.js v22: RangeError: Maximum call stack size exceeded HOT 5
- Impossible to install ffi-napi on Windows 11 HOT 1
- Couldn't be built successfully HOT 3
- Infer `nodedir` for headerfiles from execPath
- How to compile static library target in simulator
- Package including other binding.gyp files fails to build on native Windows with "No such file or directory" for binding.sln.gyp.9gyrmwpe.tmp HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-gyp.