Windows users are not happy.
It all started with this conversation.
As I said, I'm pretty much a newbie and I don't even know what node-gyp does, but what I DO know is that it's a pain to run Windows and install a project with node-gyp as a dependency. Some numbers:
It's bizarre that a nodejs developer needs to install visual studio (even the express edition) in order to be able to work on Windows. Even more bizarre is that I, as a .NET developer with full visual studio installed in my machine still can't download a bunch of projects that use this project.
With that being said, I'd like to know from all of you what should we do to make windows users fall in the pit of success? What are the alternatives? Does Microsoft can solve this in any way?
This issue is fixed (kinda)
@mousetraps pointed that Microsoft is shipping the C++ build tools separately now. Check here
Some updates on this gigantic thread
Absolutely non-official statement that @Microsoft is aware of this issue and seeing what can be done
@mousetraps said that this thread "is high on people's radar" at @Microsoft
Very good Q&A about noge-gyp issues on Windows and why they happen
@dekarguy took the time to answer some questions about what we all are going through
@jasonwilliams200OK No I am not. If the "Typical" install works on your system but not on mine (and many others), then I am correct, that the "Typical" install might be working on some systems but is not working on 100% of all systems. There is no reason to try again, because with the custom install, I was able to fix it.
@hfinger, you didn't mentioned which package failed to install on your system and which Windows version you were trying on? @mousetraps, specifically discussed this issue above and unable to reproduce herself. If you don't care to read what she is asking and what has been already discussed, then this whole conversation is pointless and redundant. Nobody has provided steps to reproduce that scenario. I tried several times in different Windows 7 x86-32 VMs lately (full steps to repro were made available above), but didn't hit this issue which is why I asked you to try again. Although I know exactly how painful it is to figure out minimum steps to repro in this kind of situation, but like every other software development bug situation: if you don't care to try again or provide real reproducible steps, then NOTHING is definite and speculations will complicate the process. Though I would love to test if you or anyone else can provide reproducible steps. And if proven wrong, I will vote for docs update and even send a PR. Until that time, it is a "maybe required/extra step".
@jasonwilliams200OK I tried several packages, but during the several reinstalls of Build Tools I mostly just tried bufferutil.
I specifically answered that question by @mousetraps and said that I had first choosen Default install, which was not working. Then selecting custom install with both SDKs made it working. I am just trying to help here, by saying how I was able to fix that problem. And it seems there are many other people (@dKab @ariofrio), who also needed the custom install for it to work.
I don't see how you are helping the discussion by saying that the bug does not exist, because in your VM with a clean Windows you cannot reproduce the bug. Just guess how many people are not on a clean windows. Anyway, I will not further reply, because I already said where the bug is and how to fix it. It would just be easier if it is included in the guide, because I myself spend several hours reinstalling several times and reading this thread. Or do you want to include in the guide as a first step that you have to reinstall Windows?
It made it much more hard to solve, because people like you are saying the Default install has no bug. I am reporting that it has a bug and I am not hallucinating that. And I even said, how I was able to solve that bug. I don't mind your VM setup. Why should I "try again"? I already solved it by doing the custom install.
Why should I "try again"?
If you don't want to try again, then stop misguiding others.
I tried to install Yandex Gemini on Windows 10 and getted error
\appdata\roaming\npm\node_modules\gemini\node_modules\png-img\third_party\libpng\pngpriv.h(44): fatal error C1083: Cannot open include file: 'stdlib.h'
So this helped me:
-
Install Node.js 5
-
Install Python 2.7
-
Install Microsoft Visual C++ Build Tools 2015 Technical Preview
-
Install Visual Studio 2015 Community https://www.visualstudio.com/en-us/downloads/dn469506 in Custom install: with Visual C++
-
Add system envirompment var: GYP_MSVS_VERSION=2015
-
In cmd without admin rights:
npm config set msvs_version 2015 --global npm install -g --msvs_version=2015 node-gyp rebuild npm install -g gemini
PS. Commands like "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\SetEnv.CMD" /Release /x64
NOT NEEDED.
Can all Windows tests please use Node v4.3.2 as a minimum as it has LTS.
- Installed nodejs LTS 4.2.3
- Python 2.7
- Microsoft Visual C++ Build Tools 2015 Technical Preview
- Install Visual Studio 2015 Community https://www.visualstudio.com/en-us/downloads/dn469506 in Custom install: with Visual C++
- Add system envirompment var: GYP_MSVS_VERSION=2015
Getting the following error (fatal error C1189) if I want to run npm install canvas
C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu erm”glichen, mssen Sie den Schalter "/m" hinzufgen.
Canvas.cc
CanvasGradient.cc
CanvasPattern.cc
CanvasRenderingContext2d.cc
color.cc
Image.cc
ImageData.cc
init.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: "snprintf": Makro-Neudefinition (Quelldatei wird kompiliert ..\src\Canvas.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): note: Befehlszeilenargumente: siehe vorherige Definition von "snprintf" (Quelldatei wird kompiliert ..\src\Canvas.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration (Quelldatei wird kompiliert ..\src\Canvas.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: "snprintf": Makro-Neudefinition (Quelldatei wird kompiliert ..\src\CanvasPattern.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): note: Befehlszeilenargumente: siehe vorherige Definition von "snprintf" (Quelldatei wird kompiliert ..\src\CanvasPattern.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration (Quelldatei wird kompiliert ..\src\CanvasPattern.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
PixelArray.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: "snprintf": Makro-Neudefinition (Quelldatei wird kompiliert ..\src\CanvasGradient.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): note: Befehlszeilenargumente: siehe vorherige Definition von "snprintf" (Quelldatei wird kompiliert ..\src\CanvasGradient.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration (Quelldatei wird kompiliert ..\src\CanvasGradient.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: "snprintf": Makro-Neudefinition (Quelldatei wird kompiliert ..\src\color.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): note: Befehlszeilenargumente: siehe vorherige Definition von "snprintf" (Quelldatei wird kompiliert ..\src\color.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration (Quelldatei wird kompiliert ..\src\color.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: "snprintf": Makro-Neudefinition (Quelldatei wird kompiliert ..\src\init.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): note: Befehlszeilenargumente: siehe vorherige Definition von "snprintf" (Quelldatei wird kompiliert ..\src\init.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration (Quelldatei wird kompiliert ..\src\init.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: "snprintf": Makro-Neudefinition (Quelldatei wird kompiliert ..\src\Image.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): note: Befehlszeilenargumente: siehe vorherige Definition von "snprintf" (Quelldatei wird kompiliert ..\src\Image.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration (Quelldatei wird kompiliert ..\src\Image.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: "snprintf": Makro-Neudefinition (Quelldatei wird kompiliert ..\src\ImageData.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): note: Befehlszeilenargumente: siehe vorherige Definition von "snprintf" (Quelldatei wird kompiliert ..\src\ImageData.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration (Quelldatei wird kompiliert ..\src\ImageData.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: "snprintf": Makro-Neudefinition (Quelldatei wird kompiliert ..\src\PixelArray.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): note: Befehlszeilenargumente: siehe vorherige Definition von "snprintf" (Quelldatei wird kompiliert ..\src\PixelArray.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration (Quelldatei wird kompiliert ..\src\PixelArray.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: "snprintf": Makro-Neudefinition (Quelldatei wird kompiliert ..\src\CanvasRenderingContext2d.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): note: Befehlszeilenargumente: siehe vorherige Definition von "snprintf" (Quelldatei wird kompiliert ..\src\CanvasRenderingContext2d.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration (Quelldatei wird kompiliert ..\src\CanvasRenderingContext2d.cc) [C:\workspace-js\cme-content-crawler-suppilo\node_modules\canvas\build\canvas.vcxproj]
@frankred, this issue (that C99 snprintf shouldn't be redefined for VS2015) was fixed in canvas v1.3.5 (Automattic/node-canvas#670).
# powershell
#
# Download GTK v2 from:
# http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip
# and extract it to C:\GTK
# for more details, see:
# https://github.com/Automattic/node-canvas/wiki/Installation---Windows#2-installing-gtk-2
#
npm install canvas
# or specify 'dist label' => npm install canvas@latest
# or from GitHub (if you have `git` in PATH) => npm install Automattic/node-canvas
# success!
@am11 thanks a lot, just made a version update and now everything works!
Hi everyone, I solved this problema on windows 8 and windows 10 pro with this tutorial. I try a lot of times to solve this problema with many different solutions, but only worked for me with this: http://www.serverpals.com/blog/building-using-node-gyp-with-visual-studio-express-2015-on-windows-10-pro-x64 I notice that i didn't use nodist to control the node version like this tutorial, I use NVM and worked fine, i don't test this tutorial with nodist. I used node 5.2.0.
This may be (partially) fixed, but you've got a way to go. I am having major problems with node-gyp on Windows 7 behind a corporate proxy:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | ia32
gyp http GET https://atom.io/download/atom-shell/v0.34.5/node-v0.34.5.tar.gz
gyp WARN install got an error, rolling back install
gyp
Note the complete lack of information about what the error was, or a clue how to resolve it.
I (finally) got npm to work happily with this environment. node-gyp still doesn't, which means Atom doesn't, which means I can't install Atom packages.
Which means I may have to switch from Atom. For want of a nail...
@alflanagan Can you confirm this version of Node you're using? It look like you're using v0.10.40 which isn't supported by the fix stated above.
Happy to be proven wrong, but I believe it only supports v4+
@justrhysism, as far as node-sass is concerned, I have successfully tested this setup (via nvmw) to work with: v0.10, v0.12, v1.0.x, v1.1+.x, v2, v3, v4 and v5. Note in v1, NODE_MODULE_VERSION changed twice (in io.js days), which is why we have two separate binaries for each platform combination for v1 line.
@am11 node-sass? This thread is discussing node-gyp.
I also would be reluctant to rely on nvmw, because as good as it the tool itself is trying to be, it is very much hamstrung by the Windows environment. Manipulating the PATH doesn't pass onto child processes correctly, and can cause issues (even with node-sass) if builds are conducted in a child process which is running a different version of node (the global version).
@justrhysism, yes node-sass is using node-gyp. Sorry I thought this bit was obvious.
When I tried to mongodb for node.js, I used npm install mongodb directly and get the following info:
npm WARN peerDependencies The peer dependency kerberos@~0.0 included from mongod b-core will no longer be automatically installed to fulfill the peerDependency in npm 3+. Your application will need to depend on it explicitly. / [email protected] install C:\nodejs\node_modules\mongodb\node_modules\kerberos (node-gyp rebuild) || (exit 0)
C:\nodejs\node_modules\mongodb\node_modules\kerberos>if not defined npm_config_n ode_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....
node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
then cmd just stuck there without forwarding.
So I terminated the batch job by <ctrl-c>
I made some search and found some instructions here
I didn't follow the tool chain in the page instead I tried @mousetraps thread here on a fresh win 7 x64 because I had followed that and get a failure in the end. That's why I am here now. Other things not changed in the mongodb instructions page.
My working directory is C:\nodejs so I copy node.exe file from C:\Program Files\nodejs to here.
After I followed the instruction to run command line: npm install -g node-gyp
Things going well but the next one: npm install Errors fly.
npm WARN package.json [email protected] license should be a valid SPDX license exp ression
[email protected] install C:\nodejs\kerberos (node-gyp rebuild) || (exit 0)
C:\nodejs\kerberos>if not defined npm_config_node_gyp (node "C:\Program Files\no dejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp .js" rebuild ) else (node rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. kerberos.cc worker.cc security_buffer.cc security_buffer_descriptor.cc c:\users\kk210.node-gyp\4.2.4\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory (compiling source fil e ..\lib\win32\kerberos.cc) [C:\nodejs\kerberos\build\kerberos.vcxproj] c:\users\kk210.node-gyp\4.2.4\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory (compiling source fil e ..\lib\win32\wrappers\security_buffer_descriptor.cc) [C:\nodejs\kerberos\buil d\kerberos.vcxproj] c:\users\kk210.node-gyp\4.2.4\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory (compiling source fil e ..\lib\win32\wrappers\security_buffer.cc) [C:\nodejs\kerberos\build\kerberos. vcxproj] c:\users\kk210.node-gyp\4.2.4\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory (compiling source fil e ..\lib\win32\worker.cc) [C:\nodejs\kerberos\build\kerberos.vcxproj] security_context.cc security_credentials.cc ..\lib\win32\wrappers\security_context.cc(1): fatal error C1083: Cannot open in clude file: 'assert.h': No such file or directory [C:\nodejs\kerberos\build\ker beros.vcxproj] c:\users\kk210.node-gyp\4.2.4\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory (compiling source fil e ..\lib\win32\wrappers\security_credentials.cc) [C:\nodejs\kerberos\build\kerb eros.vcxproj] gyp ERR! build error gyp ERR! stack Error:
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exefail ed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\nodejs\kerberos gyp ERR! node -v v4.2.4 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok [email protected] node_modules\nan[email protected] node_modules\nodeunit └── [email protected] ([email protected], [email protected], [email protected], [email protected] , [email protected], [email protected], [email protected], [email protected], [email protected], runforcove [email protected])
And these follow the command: node-gyp rebuild
gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp info spawn C:\Python27\python.EXE gyp info spawn args [ 'C:\Users\kk210\AppData\Roaming\npm\node_modules\no de-gyp\gyp\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-G', gyp info spawn args 'msvs_version=auto', gyp info spawn args '-I', gyp info spawn args 'C:\nodejs\kerberos\build\config.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Users\kk210\AppData\Roaming\npm\node_modules\no de-gyp\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Users\kk210.node-gyp\4.2.4\include\node\common .gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\Users\kk210.node-gyp\4.2.4', gyp info spawn args '-Dnode_gyp_dir=C:\Users\kk210\AppData\Roaming\npm\n ode_modules\node-gyp', gyp info spawn args '-Dnode_lib_file=node.lib', gyp info spawn args '-Dmodule_root_dir=C:\nodejs\kerberos', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'C:\nodejs\kerberos\build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe gyp info spawn args [ 'build/binding.sln', gyp info spawn args '/clp:Verbosity=minimal', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=x64' ] Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua l Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [C:\nodejs\kerberos\build\binding.sln] gyp ERR! build error gyp ERR! stack Error:
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exefail ed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\kk210\AppData\Roaming\npm\no de_modules\node-gyp\lib\build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\kk210\AppDat a\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\nodejs\kerberos gyp ERR! node -v v4.2.4 gyp ERR! node-gyp -v v3.2.1 gyp ERR! not ok
My configuration is: npm 2.14.12
node.js 4.2.4LTS
Python 2.7.11 Install for all users with check of Add python.exe to Path
Visual C++ Build Tools with default installation
All my command is in cmd.exe and I am afraid many of my steps are wrong because I am really a fresh starter. What is exactly the routine to build c++ extention for Node.js on Windows? Don't hesitate to hit me clearly because I'm already painful enough here.
@am11 oh you're building node-sass. No, that wasn't obvious.
Did you have a global version of Node installed when using nvmw? I've had issues in the past when a global Node has been installed, and the build used the global version instead of the version on the PATH, causing mismatches with the binaries.
I know you got it working, but I have dealt with much pain attempting to reliably use nvmw recently and have decided to ultimately drop it's use for my team.
@am11 It was said that you have been successfully tested on kerberos with the solution provided by @mousetraps from here,right? Could you please kindly give some detailed instructions for such a newbie like me? Hopefully I could have some hints about the problem.
@krave1986,
Visual C++ Build Tools with default installation
Although some people are suggesting Default installation should work; you may want to try reinstalling Visual C++ Build Tools, select Custom install option and check both SDKs. The rest of your configuration seems correct.
@am11 I have solved the problem about missing stddef.h and another MSB4025 issue as the hint from here
I have not try the Custom install option for now because I thought the LNK error below could be solved. Just take Custom install option as my next movement.
Having tried many ways to reduce errors. This is as far as I can go, the error goes like:
LINK : fatal error LNK1104: cannot open file 'libucrt.lib' [C:\ttst\node_module s\kerberos\build\kerberos.vcxproj] While the libucrt.lib is just in: C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10150.0\ucrt\x64 C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10150.0\ucrt\x86
I have Visual C++ Build Tools installed which I found in this issue
My command is just: npm install kerberos.
Many said that LIB and INCLUDES should be modified, but how should I modify them?
@fresc81 @jasonwilliams200OK Could you please also help to check the problem? Many thanks!