The installation npm i is looking for files in the build process that don't exist.
C:\nd\electron-spellchecker\example (master -> origin)
λ npm i
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade npm WARN deprecated constantinople@3.0.2: Please update to at least constantinople 3.1.1
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
> @paulcbetts/cld@2.4.6 install C:\nd\electron-spellchecker\node_modules\@paulcbetts\cld
> node-gyp rebuild
C:\nd\electron-spellchecker\node_modules\@paulcbetts\cld>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
cldutil.cc
cldutil_shared.cc
compact_lang_det.cc
compact_lang_det_hint_code.cc
..\..\..\deps\cld\internal\compact_lang_det.cc(19): fatal error C1083: Cannot open include file: 'stdio.h': No such fil e or directory [C:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
c:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\deps\cld\internal\compact_lang_det_hint_code.h(23): fatal erro r C1083: Cannot open include file: 'string': No such file or directory (..\..\..\deps\cld\internal\compact_lang_det_hin t_code.cc) [C:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
c:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\deps\cld\internal\scoreonescriptspan.h(76): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory (..\..\..\deps\cld\internal\cldutil.cc) [C:\nd\electron -spellchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
..\..\..\deps\cld\internal\cldutil_shared.cc(20): fatal error C1083: Cannot open include file: 'string': No such file o r directory [C:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
compact_lang_det_impl.cc
debug.cc
fixunicodevalue.cc
generated_entities.cc
..\..\..\deps\cld\internal\compact_lang_det_impl.cc(20): fatal error C1083: Cannot open include file: 'stdint.h': No su ch file or directory [C:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
c:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\deps\cld\internal\debug.h(24): fatal error C1083: Cannot open
include file: 'string': No such file or directory (..\..\..\deps\cld\internal\debug.cc) [C:\nd\electron-spellchecker\no de_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
c:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\deps\cld\internal\port.h(22): fatal error C1083: Cannot open i nclude file: 'string.h': No such file or directory (..\..\..\deps\cld\internal\fixunicodevalue.cc) [C:\nd\electron-spel lchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
generated_language.cc
generated_ulscript.cc
getonescriptspan.cc
c:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\deps\cld\internal\offsetmap.h(22): fatal error C1083: Cannot o pen include file: 'string': No such file or directory (..\..\..\deps\cld\internal\getonescriptspan.cc) [C:\nd\electron- spellchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
lang_script.cc
..\..\..\deps\cld\internal\lang_script.cc(26): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory [C:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
offsetmap.cc
c:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\deps\cld\internal\offsetmap.h(22): fatal error C1083: Cannot o pen include file: 'string': No such file or directory (..\..\..\deps\cld\internal\offsetmap.cc) [C:\nd\electron-spellch ecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
scoreonescriptspan.cc
c:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\deps\cld\internal\scoreonescriptspan.h(76): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory (..\..\..\deps\cld\internal\scoreonescriptspan.cc) [C:\ nd\electron-spellchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
tote.cc
c:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\deps\cld\internal\tote.h(22): fatal error C1083: Cannot open i nclude file: 'stdio.h': No such file or directory (..\..\..\deps\cld\internal\tote.cc) [C:\nd\electron-spellchecker\nod e_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
utf8statetable.cc
c:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\deps\cld\internal\utf8statetable.h(25): fatal error C1083: Can not open include file: 'string': No such file or directory (..\..\..\deps\cld\internal\utf8statetable.cc) [C:\nd\electr on-spellchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
cld_generated_cjk_uni_prop_80.cc
c:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\deps\cld\internal\utf8statetable.h(25): fatal error C1083: Can not open include file: 'string': No such file or directory (..\..\..\deps\cld\internal\cld_generated_cjk_uni_prop_80.cc ) [C:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
cld2_generated_cjk_compatible.cc
cld_generated_cjk_delta_bi_32.cc
generated_distinct_bi_0.cc
cld2_generated_quad0122.cc
cld2_generated_deltaocta0122.cc
cld2_generated_deltaoctachrome.cc
cld2_generated_distinctocta0122.cc
cld2_generated_distinctoctachrome.cc
cld2_generated_quadchrome_16.cc
cld2_generated_quadchrome_2.cc
cld_generated_score_quad_octa_0122.cc
cld_generated_score_quad_octa_2.cc
win_delay_load_hook.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\windows.h(160): fatal error C1083: Cannot open include file: 'excpt. h': No such file or directory (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c c) [C:\nd\electron-spellchecker\node_modules\@paulcbetts\cld\build\deps\cld\cld-c.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\nd\electron-spellchecker\node_modules\@paulcbetts\cld
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @paulcbetts/cld@2.4.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @paulcbetts/cld@2.4.6 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2018-04-17T13_57_53_348Z-debug.log
C:\nd\electron-spellchecker\example (master -> origin)
λ node --version
v9.10.1
C:\nd\electron-spellchecker\example (master -> origin)
λ npm --version
5.6.0
The installation
npm i
is looking for files in the build process that don't exist.What am I missing?