Skip to content

Build fails: fatal error C1083: Cannot open include file: 'atlenc.h #89

@a3rtgm-ds

Description

@a3rtgm-ds

I cannot install v0.2.8 with Node v14.15.1 (also tried v12.20 and v15). Also tried updating node-gyp and the build tools.
System: Win 10 x64

No binary is available, so it tries to build...
Fails with:

Warning: Missing input files:
C:\CSL\dev\mp-admintool\node_modules\node-sspi\build\..\src\*.cpp
C:\CSL\dev\mp-admintool\node_modules\node-sspi\build\..\src\*.h
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  NodeSSPI.cpp
  win_delay_load_hook.cc
c:\csl\dev\mp-admintool\node_modules\node-sspi\src\nodesspi.h(10): fatal error C1083: Cannot open include file: 'atlenc.h': No such file or directory (compiling source file ..\src\NodeSSPI.cpp) [C:\CSL\dev\mp-admintool\node_modules\node-sspi\build\NodeSSPI.vcxpr
oj]
?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mbuild error?[0m
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mstack?[0m Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mstack?[0m     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mstack?[0m     at ChildProcess.emit (events.js:314:20)
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mstack?[0m     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mSystem?[0m Windows_NT 10.0.17763
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mcommand?[0m "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mcwd?[0m C:\CSL\dev\mp-admintool\node_modules\node-sspi
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mnode -v?[0m v14.5.0
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mnode-gyp -v?[0m v5.1.0
?[0m?[37;40mgyp?[0m ?[0m?[31;40mERR!?[0m ?[0m?[35mnot ok?[0m
?[0mBuild failed

Also tried assigning a different node-gyp version through npm config set node_gyp

Appreciate your help :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions