mscdex/cap

windows 10 npm i cap problem

halilarici opened this issue · 0 comments

I write npm i cap --verbose
Output :
c:\users\alokazaap1.node-gyp\10.6.0\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory (compiling
source file ..\src\binding.cc) [C:\Users\AloKazaAP1\Desktop\DE\windows\node_modules\cap\build\cap.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compili
ng source file C:\Users\AloKazaAP1\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc) [C:\Users\AloKazaAP1\Desktop\DE
windows\node_modules\cap\build\cap.vcxproj]
Done Building Project "C:\Users\AloKazaAP1\Desktop\DE\windows\node_modules\cap\build\cap.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\AloKazaAP1\Desktop\DE\windows\node_modules\cap\build\binding.sln" (default targets) -- FAILED.

Build FAILED.

"C:\Users\AloKazaAP1\Desktop\DE\windows\node_modules\cap\build\binding.sln" (default target) (1) ->
"C:\Users\AloKazaAP1\Desktop\DE\windows\node_modules\cap\build\cap.vcxproj" (default target) (2) ->
(ClCompile target) ->
c:\users\alokazaap1.node-gyp\10.6.0\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory (compilin
g source file ..\src\binding.cc) [C:\Users\AloKazaAP1\Desktop\DE\windows\node_modules\cap\build\cap.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compi
ling source file C:\Users\AloKazaAP1\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc) [C:\Users\AloKazaAP1\Desktop\D
E\windows\node_modules\cap\build\cap.vcxproj]

0 Warning(s)
2 Error(s)

Time Elapsed 00:00:02.46
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\AloKazaAP1\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\AloKazaAP1\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\AloKazaAP1\Desktop\DE\windows\node_modules\cap
gyp ERR! node -v v10.6.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm verb lifecycle cap@0.2.0install: unsafe-perm in lifecycle true
npm verb lifecycle cap@0.2.0
install: PATH: C:\Users\AloKazaAP1\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\AloKazaAP1\Desktop\DE\windows\node_modules\cap\node_modules.bin;C:\Users\AloKazaAP1\Desktop\DE\windows\node_modules.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\PuTTY;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files\nodejs;C:\Program Files\Microsoft Network Monitor 3;C:\Program Files\Git\cmd;C:\Users\AloKazaAP1\AppData\Local\Microsoft\WindowsApps;C:\Users\AloKazaAP1\AppData\Roaming\npm;C:\Users\AloKazaAP1\AppData\Local\Programs\Fiddler
npm verb lifecycle cap@0.2.0install: CWD: C:\Users\AloKazaAP1\Desktop\DE\windows\node_modules\cap
npm info lifecycle cap@0.2.0
install: Failed to exec install script
npm timing action:install Completed in 4920ms
npm verb unlock done using C:\Users\AloKazaAP1\AppData\Roaming\npm-cache_locks\staging-1c1ad857fb3d6f95.lock for C:\Users\AloKazaAP1\Desktop\DE\windows\node_modules.staging
npm timing stage:rollbackFailedOptional Completed in 829ms
npm timing stage:runTopLevelLifecycles Completed in 48336ms
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

npm verb stack Error: cap@0.2.0 install: node-gyp rebuild
npm verb stack Exit status 1
npm verb stack at EventEmitter. (C:\Users\AloKazaAP1\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:304:16)
npm verb stack at EventEmitter.emit (events.js:182:13)
npm verb stack at ChildProcess. (C:\Users\AloKazaAP1\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
npm verb stack at ChildProcess.emit (events.js:182:13)
npm verb stack at maybeClose (internal/child_process.js:961:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
npm verb pkgid cap@0.2.0
npm verb cwd C:\Users\AloKazaAP1\Desktop\DE\windows
npm verb Windows_NT 10.0.17134
npm verb argv "C:\Program Files\nodejs\node.exe" "C:\Users\AloKazaAP1\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "i" "cap" "--verbose"
npm verb node v10.6.0
npm verb npm v6.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cap@0.2.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cap@0.2.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]
npm timing npm Completed in 50318ms

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\AloKazaAP1\AppData\Roaming\npm-cache_logs\2018-07-30T09_46_16_236Z-debug.log